Skip to content

Cortex v1.3.0

Latest
Compare
Choose a tag to compare
@ikkez ikkez released this 19 Jan 23:10
· 283 commits to master-v3 since this release

This new release is fully compatible with the FatFree v3.4.0 release.
You can find additional release note in the changelogs.

What's new?

Basically a lot of fixes and improvements, and some adjustments to be compatible with the new F3 version.

The new countRel() method gives you an easy way to kick in some counting aggregation on relations. For instance:

$news->countRel('comments');
$results = $news->find();

This will add a virtual field to each record, containing the number of comments the news record has (also works on many-to-many relations). You can also add a filter on that relation, that will be respected on the counter too, so that the following example will only count all visible comments:

$news->filter('comments', array('hidden = ?',0));
$news->countRel('comments');
$result = $news->find();

This version also brings some SQL Server and MongoDB fixes and now finally added support for the well known cursor events in F3.

Along with this, SchemaBuild v2.1.1 was also released, with minor fixes for FatFree v3.4, so consider to update that as well.

hope you like it. cheers.