protectedproperties |
Property can be set directly |
1 |
Success |
protectedproperties |
Property cannot be set with mass assignment when protected |
1 |
Success |
PropertyIsBlank |
Dynamic method call |
1 |
Success |
PropertyIsBlank |
Returns false when property is set |
0 |
Success |
PropertyIsBlank |
Returns true when property does not exist |
1 |
Success |
PropertyIsBlank |
Returns true when property is blank |
0 |
Success |
defaults |
Database defaults load after create |
24 |
Success |
defaults |
Database defaults load after save |
8 |
Success |
defaults |
New model with property defaults |
1 |
Success |
defaults |
New model with property defaults set to blank |
0 |
Success |
columnforproperty |
Column For Property dynamic method call |
1 |
Success |
columnforproperty |
Column For Property returns column name |
0 |
Success |
columnforproperty |
Column For Property returns false |
1 |
Success |
timestamps |
Created At does not change on update |
13 |
Success |
timestamps |
Epoch timestamps |
10 |
Success |
timestamps |
Explicit timestamps are respected on create |
8 |
Success |
timestamps |
Explicit timestamps are respected on update |
4 |
Success |
timestamps |
Explicit timestamps require allowexplicittimestamps on create |
12 |
Success |
timestamps |
Local timestamps |
8 |
Success |
timestamps |
Updated At does not change when no changes to model |
6 |
Success |
timestamps |
Utc timestamps |
15 |
Success |
hasChanged |
Boolean handled properly |
3 |
Success |
hasChanged |
Should be able to update integer from null to 0 |
18 |
Success |
accessibleproperties |
All other properties can be set directly |
1 |
Success |
accessibleproperties |
All other properties cannot be set except accessible properties |
0 |
Success |
accessibleproperties |
All properties can be set by default |
1 |
Success |
toggle |
Toggle property dynamic method with save |
9 |
Success |
toggle |
Toggle property dynamic method without save |
3 |
Success |
toggle |
Toggle property with save |
6 |
Success |
toggle |
Toggle property without save |
2 |
Success |
toggle |
Toggle property without save errors when not boolean |
3 |
Success |
toggle |
Toggle property without save errors when not existing |
2 |
Success |
columns |
Columns returns array |
0 |
Success |
propertyispresent |
Dynamic method call |
1 |
Success |
propertyispresent |
Returns false when property does not exist |
1 |
Success |
propertyispresent |
Returns false when property is blank |
1 |
Success |
propertyispresent |
Returns true when property is set |
1 |
Success |
properties |
Afterfind callback returns included model as object |
14 |
Success |
properties |
Calculated property override |
10 |
Success |
properties |
Nested properties returns array of objects |
2 |
Success |
properties |
Nested property is not returned when returnincluded is false |
2 |
Success |
properties |
Nested property returns an object |
1 |
Success |
properties |
Properties returns expected struct keys |
1 |
Success |
properties |
Setting and getting properties |
1 |
Success |
properties |
Setting and getting properties with named arguments |
2 |
Success |
key |
Key |
2 |
Success |
key |
Key with new |
1 |
Success |
key |
Pk calculated property selecting pk |
2 |
Success |
key |
Return numeric value if PK is numeric |
2 |
Success |
hasproperty |
Dynamic method call |
0 |
Success |
hasproperty |
Returns false when property does not exist |
1 |
Success |
hasproperty |
Returns true when property is blank |
0 |
Success |
hasproperty |
Returns true when property is set |
1 |
Success |