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
If you then query using find_by_id, the result is as expected: an object (lets say $var) where $var->id is an int and $var->foo is a string
However, when creating a new row:
$var = new Foo;
$var->foo = 'bar';
$var->save();
Then $var->id is a string. I consider this unexpected behaviour and it caused me headaches until I realized that this was the case. I hope this can be fixed soon.
The text was updated successfully, but these errors were encountered:
Consider the table foos:
If you then query using
find_by_id
, the result is as expected: an object (lets say$var
) where$var->id
is an int and$var->foo
is a stringHowever, when creating a new row:
Then
$var->id
is a string. I consider this unexpected behaviour and it caused me headaches until I realized that this was the case. I hope this can be fixed soon.The text was updated successfully, but these errors were encountered: