1.0.2
Maintenance release to include some of the bugfixes.
- Change: classes
Field_One
,Field_Many
andField_SQL_One
are renamed toRelation_One
,Relation_Many
andRelation_SQL_One
respectively. (old classes will remain for compatibility until 1.2) #86 - Added:
hasMany()->addFields(['foo','bar']);
(#77) - Fix:
addCondition('foo', ['a','b'])
no longer sets default value for fieldfoo
(#77) - Fix:
addField(new Field(), 'name')
displays error to remind you to useadd(new Field(), 'name')
(#77) - Change: traversing hasOne reference without loaded record no longer generates exception but gives you un-loaded model. (#78)
- Added:
hasOne('client_id', ['default'=>$d])
will now properly set default forclient_id
field (#78) - Fix: When building sub-qureies, alias is properly used. (#78)
- Added: Advanced documentation
- Added:
Field->set($value)
as a shortcat for$model['field'] = $value
#81 - Added: Support for
mandatory
flag on field.addField('name', ['mandatory'=>true])
#87 - Fixes: #80, #85,