1.0.2
Maintenance release to include some of the bugfixes.
- Change: classes
Field_One,Field_ManyandField_SQL_Oneare renamed toRelation_One,Relation_ManyandRelation_SQL_Onerespectively. (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_idfield (#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
mandatoryflag on field.addField('name', ['mandatory'=>true])#87 - Fixes: #80, #85,