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
I think this is happening, because of the setSource() method. The assign() method is calling setters if the exist, but setSource() has a special meaning.
A workaround of this problem is to use a MetaData Strategy (like Annotations) to rewrite the field source to something else without changing your database.
Is it possible to consider the internal properties of the Model, refer to cphalcon 3.x and add an underscore prefix, and some built-in methods also do some adjustment convention rules for easy identification
Questions? Forum: https://phalcon.io/forum or Discord: https://phalcon.io/discord
Describe the bug
A clear and concise description of what the bug is.
I have a model
CharmingU
and it has a fieldsource
, when i update charming_u record by assgin ,it cannot be updated,just like below:
i've printed the value with line numbers, and its query result ,just like belows:
so , i tried update it manually ,it works.,just like below:
i don't if it is a bug or my mistake, if you wanna reproduce it ,just like below:
To Reproduce
1.make a model any name ,
2. make sure it has a field called
source
.3. update it by using
assign
4. check it out.
PHP version :
Phalcon Version:
The text was updated successfully, but these errors were encountered: