We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this Entity:
class Email extends \Spot\Entity { public static function fields() { return [ ... 'replyTo' => ['type' => 'array', 'column' => 'reply_to'], 'to' => ['type' => 'array'], ... ]; } }
As you can see, there are two fields with the type of 'array'. One of them is aliased. The aliased one returns with a string instead of an array():
object(\Entity\Email)[29] ... protected '_data' => array (size=17) ... 'replyTo' => string 'a:1:{i:0;s:20:"some_email@gmail.com";}' (length=53) 'to' => array (size=1) 0 => string 'some_email@gmail.com' (length=20) ... ...
If I remove the alias it works properly. I could not find where it is translated from the database value to the php value.
The text was updated successfully, but these errors were encountered:
I think the aliased field's 'default' property is broken too.
Sorry, something went wrong.
I'll have to make a test for this to take a look.
Where can I find the alias management in the code?
4e5536e
No branches or pull requests
I have this Entity:
As you can see, there are two fields with the type of 'array'. One of them is aliased. The aliased one returns with a string instead of an array():
If I remove the alias it works properly. I could not find where it is translated from the database value to the php value.
The text was updated successfully, but these errors were encountered: