Phalcon v2.0.4 Release Notes
Release Date: 2015-07-07 // almost 9 years ago-
- ๐ Fixed bug in
Phalcon\Mvc\Model::update()
that throws an exception when the record does exist - ๐ Now links in
Phalcon\Debug
point to https://api.phalconphp.com instead of http://docs.phalconphp.com - Implemented a more versatile way to assign variables in Volt allowing to assign properties and array indexes
- ๐ Improved generation of macros in Volt using anonymous functions instead of plain PHP functions This allow to bind the adapter object and inject services within them
- ๐ Fixed generation and validation of default parameters in Volt's macros
- โ Added
Phalcon\Assets\Manager::getCollections()
to return all collections registered #2488 - Now
Phalcon\Mvc\Url::getStatic()
generates URLs from routes - Introduced
Phalcon\Mvc\EntityInterface
to allow parameters receive bothPhalcon\Mvc\Model
andPhalcon\Mvc\Collection
instances - โ Added
Phalcon\Session\Adapter::setName()
to change the session name - โ Added BIGINT support in
Phalcon\Db
- โ Added new types
Phalcon\Db\Column::BLOB
andPhalcon\Db\Column::DOUBLE
#10506 - Automatic binding of Large Object data (LOB) in the ORM
- ๐ Support for BIT types in MySQL with binding as booleans
- โ Added
Phalcon\Flash\Direct::output()
allowing to place flash messages in a specific place of the view #629 - โ Added 'autoescape' option that allows to globally enable autoescape in any Volt template
- โ Added
readAttribute
/writeAttribute
toPhalcon\Mvc\Collection\Document
- โ Added toArray to
Phalcon\Mvc\Collection\Document
- Global setting
db.force_casting
now forces casting bound parameters to specified bind types - Introduced new placeholders in PHQL enclosed in brackets that allow to set the type: {name:str} or {names:array}
- Now you can bind arrays in bound parameters in PHQL
- Global setting
orm.cast_on_hydrate
allow to cast hydrated attributes to the original types in the mapped tables instead of using strings - Values in LIMIT/OFFSET clause are now passed using bound parameters in PHQL
- ๐ Allowing late state binding in both Simple/Complex results to allow override
Mvc\Model::cloneResultMap
- โ Added method
distinct()
inPhalcon\Mvc\Model\Criteria
#10536 - Added global setting orm.ignore_unknown_columns to ignore unexpected columns when hydrating instances in the ORM
This fixes extra auxiliar columns used in
Db\Adapter\Pdo\Oracle
- โ Added support for afterFetch in
Mvc\Collection
- โ Added
beforeMatch
parameter in@Route
annotation ofMvc\Router\Annotations
- โ Added groupBy/getGroupBy/having/getHaving to
Mvc\Model\Criteria
Phalcon\Mvc\Model::count()
now return values as integer- โ Removed
__construct
fromPhalcon\Mvc\View\EngineInterface
- โ Added
Phalcon\Debug\Dump::toJson()
to return an JSON string of information about a single variable - โก๏ธ Now instances in Phalcon\Di are built using internal optimizers instead of ReflectionClass (PHP 5.6)
- โ Added
Phalcon\Mvc\Model\Validator\Ip
from incubator - โ Added parameter return
defaultValue
inPhalcon\Mvc\Model\Validator::getOption()
- ๐ Fixed in
Phalcon\Validation\Validator\Identical
the name of parametervalue
toaccepted
according docs - โ Added method
Text:dynamic()
generate random text in accordance with the template, see #10571 - 0๏ธโฃ Now Mvc\Router has default routes with unicode support #10544
- ๐ Fixed bug in