📜 ⬆️ ⬇️

Phalcon 2.0.2 release

The Phalcon development process has accelerated significantly since release 2.0.0. More and more contributors find Zephir easy and comprehensible for work. The result was the release of Phalcon 2.0.2. This version includes many new features, bug fixes and performance improvements:


Subqueries


One of the most popular features of the community is finally implemented in Phalcon 2.0.2. Now you can use subqueries:

 $phql = "SELECT c.* FROM Shop\Cars c WHERE c.brandId IN (SELECT id FROM Shop\Brands) ORDER BY c.name"; $cars = $this->modelsManager->executeQuery($phql); 

Models must belong to the same database in order to be used as a source in a subquery.
')

Default Database Values


Now, in cases where the column has the default value described in the schema, it will be used instead of NULL insertion:

 $robots = new Robots(); $robots->save(); // use all <code>default</code> values 

Update


This version can be installed from the master branch, if you have not yet installed Zephir, follow these steps:

 git clone http://github.com/phalcon/cphalcon git checkout master cd ext sudo ./install 

The standard installation method also works:

 git clone http://github.com/phalcon/cphalcon git checkout master cd build sudo ./install 

If you have Zephir installed:

 git clone http://github.com/phalcon/cphalcon git checkout master zephir fullclean zephir build 

Please note that when you run the installation script will replace any previously installed version of Phalcon.

DLL libraries for Windows are available on the download page .

See the upgrade to 2.0.x section for more information about upgrading from version 1.3.x.

Soon


In future 2.0.x versions we will focus our efforts on community requests:


In the future, we will plan the functionality for its inclusion in 2.1, now it is:


thank


Thanks to everyone who contributed to the creation of this version, to the whole community, for their continuous work and feedback!

Source: https://habr.com/ru/post/258769/


All Articles