Skip to content

Releases: atk4/data

1.4.1

23 Feb 22:03
Compare
Choose a tag to compare

Fixed bugs:

  • Check if actual and other seed parameters work fine in join #387
  • \atk4\data\Field_Callback does not exist #363

Closed issues:

  • Migrate Model AutoCreator to Agile Data #251
  • Write article on how to store data encrypted #143

Merged pull requests:

1.4.0

04 Feb 19:46
Compare
Choose a tag to compare

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:

1.3.7

16 Aug 07:53
Compare
Choose a tag to compare

Minor release. Calling addCondition('age', '>', 30) will no longer mark field age as system.

1.3.6

05 Jul 11:20
Compare
Choose a tag to compare

This release adds some great improvements to the aggregate fields. The most notable change is that
you no longer need to specify 'field' for 'count' aggregation, it has been a thorn:

$this->hasMany('Invoices', new Invoice())->addField('invoice_count', ['aggregate'=>'count']);

Now the alternative syntax is available, where you can just define your expression explicitly:

$this->hasMany('Items', new Item())->addField('list', ['expr'=>'group_concat([name] separator "+")']);

Closed issues:

  • Documentation atk4/data not meet atk/data-primer repository #328

Merged pull requests:

1.3.3

03 Apr 22:19
Compare
Choose a tag to compare

Fixed bugs:

  • DSN without password #298
  • adding reference multiple times does not produce error #239
  • addTitle() doesn't work for fields without _id suffix #220
  • looks like misspelled ->table #212

Closed issues:

  • Model->export: using ID as first level array key? #311
  • Refactor to use SQLTestCase from atk4/core #258
  • Docs: There is wrong description and examples #204
  • action('field') on expression should alias it to name of field. #190
  • Typecast use of 'actual' clashes with persistence->update() #186

Merged pull requests:

1.3.2

02 Apr 11:13
Compare
Choose a tag to compare

Implemented enhancements:

  • add $caption, getModelCaption() and getTitle() #290
  • Easier access to title of a current record #289

Closed issues:

  • add travis testing for postgresql #288

Merged pull requests:

1.3.1

02 Mar 12:28
Compare
Choose a tag to compare

Closed issues:

  • Typecasting for id field #293
  • Should action('xyz')->execute() trigger hooks? #291

Merged pull requests:

1.3.0

03 Feb 14:02
Compare
Choose a tag to compare

Add support for Oracle and PostgreSQL, adding support for sequences and migrate to ATK Data 1.2.x

Fixed bugs:

  • Tests of CSV persistence fail on Windows #271

Closed issues:

  • Problem with oracle insert #280
  • Oracle dates not working properly #279
  • After latest composer update, warning is thrown in Persistence_SQL->initQueryFields() #274
  • [epic] Implement support for Oracle #270

Merged pull requests:

1.2.3

02 Jan 10:37
Compare
Choose a tag to compare

This version focuses on enabling you to define your own Field classes, such as more advanced Password
handling field. See example: https://github.com/atk4/login/blob/master/src/Field/Password.php

Introduced new way to verify field values with $model->compare('age', 20); which returs boolean. Also
in addition to enum property, you can use values property with a field now.

Rewrote Overview section of documentation and added new information on Fields and Static Persistence.

  • Added Persistence_Static #265
  • Implemented $field->values property #266
  • Added Field->compare() and Model->compare()
  • Improved support for user-defined fields (nee Field\Password from https://github.com/atk4/login) #259
  • Allow to specify join kind
  • Allow fields extended from Field class to be loaded from SQL #269
  • Started official support of 7.2.
  • Fixed typecasting when using Array persistence
  • Extra docs on: Fields, Static Persistence
  • Docs rewrite of Overiew section.

1.2.2

03 Dec 14:13
Compare
Choose a tag to compare

1.2.2

Agile Data was created some time ago, before factory() implementation was completed in Agile Core. At
that time we had to make a decision how to better set the default class for the field, so we used
propreties such as _default_class_addField. Now that Agile Core allows us to specify Seed, we
have refactored some of that internal functionality to rely on factory(). This should not impact
your applications unless you are using custom persistence. #261

Additional fixes:

  • Persistence to hold Model Prefix #152
  • adding addTitle() now hides 'id' field #252 #253
  • refLink() to pass $defaults #254
  • couldn't connect to sqlite due to ;charset postfix in DSN #256 #257
  • improve iterating models without id field #260