1.4.0
- Add implementation for sorting, ordering and actions in
Persistence_Array
. - afterSave hook gains 2nd argument ($is_update)
- New pattern: implemented of SubTypes
- Model::hasField() added for convenience (similar to hasElement())
- New aggregation function - concat
- Implemented "DeepCopy" feature (experemental)
- Implemented insert lookups (https://medium.com/@romaninsh/atk-data-and-data-import-ingestion-82bdb81c74dd)
- Refactor ['type'=>'boolean'] into Boolean class #314 (experemental)
Fixed bugs:
- Model: $this->set($this->id_field, $this->id) after insert #365
- Issue with afterSave, AfterInsert and AfterUpdate Hooks together with hasOne()->addField() #383
- our_field is honored in Reference impl, but on save a validation error is thrown #370
- hasMany on Join in not implemented yet #369
- Copy with reference traversal #360
- Model::ref() does not apply condition on hasMany Reference if Model is not loaded #355
- Escaped quote issue #349
- $model->each() should return array of returned values. #348
- Documentation mistake #347
- Looks like type=>'text' is possible but not documented #338
- Persistence_CSV and Persistence_Array does not support export() #312
Merged pull requests:
- Feature/add action in aftersave hook #384 (@DarkSide666)
- Feature/normalize date values #381 (@DarkSide666)
- Feature/fix newinstance #380 (@DarkSide666)
- Support callables like [$this,'func'] for addRef() #378 (@DarkSide666)
- implement Array persistence traversal, conditions and actions #377 (@romaninsh)
- Implement export() for Array and CSV persistences #374 (@DarkSide666)
- Fix Reference_SQL_One lookup bugs, adds tests #373 (@DarkSide666)
- Fix Join->hasOne/hasMany #372 (@DarkSide666)
- Apply fixes from StyleCI #371 (@DarkSide666)
- Save id value after insert to id_field #368 (@romaninsh)
- Feature/extend setorder even more #367 (@DarkSide666)
- Fix typo and setOrder() with array args #364 (@mvorisek)
- Implement SubType support (overriding class) #361 (@romaninsh)
- Implementation of Deep Copy feature #359 (@romaninsh)
- Feature/add test for 355 #357 (@DarkSide666)
- beforeInsert/beforeUpdate Note #354 (@PhilippGrashoff)
- Feature/line end normalize #353 (@DarkSide666)
- Feature/json error #351 (@DarkSide666)
- Implement Lookups for inserts #350 (@romaninsh)
- Apply fixes from StyleCI #346 (@romaninsh)
- Feature/json unserialize error check (compatible with php 7.3) #345 (@romaninsh)
- Apply fixes from StyleCI #344 (@romaninsh)
- Apply fixes from StyleCI #343 (@romaninsh)
- Apply fixes from StyleCI #342 (@romaninsh)
- Feature/type text #339 (@DarkSide666)