@romaninsh romaninsh released this Aug 16, 2018 · 102 commits to develop since this release

Assets 2

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

@romaninsh romaninsh released this Jul 5, 2018 · 108 commits to develop since this release

Assets 2

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:

May 15, 2018
Set up stable dependencies for 1.3.5
May 14, 2018
Set up stable dependencies for 1.3.4

@romaninsh romaninsh released this Apr 3, 2018 · 134 commits to develop since this release

Assets 2

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:

@romaninsh romaninsh released this Apr 2, 2018 · 164 commits to develop since this release

Assets 2

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:

@romaninsh romaninsh released this Mar 2, 2018 · 172 commits to develop since this release

Assets 2

Closed issues:

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

Merged pull requests:

@romaninsh romaninsh released this Feb 3, 2018 · 207 commits to develop since this release

Assets 2

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:

@romaninsh romaninsh released this Jan 2, 2018 · 233 commits to develop since this release

Assets 2

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.

@romaninsh romaninsh released this Dec 3, 2017 · 281 commits to develop since this release

Assets 2

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