You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the $appends array in the model should contains all additional fieds that are available but not on the database. These fields are accessible using the accessors.
The current behavior is that if i have an append, it will try to get it from the sql query, but it shouldn't.
In my opinion if there is a model like
#[ LodataString(name: 'FullName', source: 'full_name'),
class User extend Model {
$appends = ['full_name'];
public function getFullNameAttribute {
return $this->first_name ." ". $this->last_name;
}
}
full_name has to be pulled from sql query but only from the accessor.
The text was updated successfully, but these errors were encountered:
the $appends array in the model should contains all additional fieds that are available but not on the database. These fields are accessible using the accessors.
The current behavior is that if i have an append, it will try to get it from the sql query, but it shouldn't.
In my opinion if there is a model like
full_name has to be pulled from sql query but only from the accessor.
The text was updated successfully, but these errors were encountered: