Releases: phalcon/cphalcon
Releases · phalcon/cphalcon
Version 2.0.6 Stable
- Builds in TravisCI now uses Docker to perform faster builds
- Added
Http\Response::setCache()
to easily set cache headers. - When a beanstalkd connection is closed the adapter does not produce a notice anymore
- Default separator in
Text::increment
is now _ (underscore) - Using tel_field in Volt now generates correct PHP code
- SQL generated by PostgreSQL dialect in dropTable and dropView is now correct
- Errors generated in
Cache\Backend\Memcached
now shows the result code to easily debug problems - Fixed
LIMIT/OFFSET
SQL generation inMvc\Model\Query\Builder
- Fixed Logger\Formatter\Line to match 1.3.x behavior
- Fixed warning when castOnHydrate' is true #10648
- Added name before int/float/numeric/string/bool/null/other variables in Debug\Dump::output
- Now
Validation\Validator\Identical
allows both 'accepted' and 'value' as value to keep backwards compatibility - Added
\Phalcon\Mvc\Model\MetaData\Redis
adapter. - Added Redis Session adapter
- Fixed bug in Mvc\Model\Criteria::fromInput unallowing it to use renamed columns
- Fixed bug in
Http\Request
getRawBody()/getPut() clears input buffer #10694
Version 2.0.5 Stable
- Fixed a bug that makes that attaching an events manager to an Mvc\Application causes view->render() not being called
- Fixed bug that makes generated SQL statements using FOR UPDATE not being parsed correctly
- The email filter now no longer removes the ' character #10603
- When an array is bound the cached representation in PHQL makes the SQL being incorrectly
generated the second time. - Added \Phalcon\Mvc\Model\MetaData\Memcache and \Phalcon\Mvc\Model\MetaData\Libmemcached adapters
- Fixed a bug that makes macro can't be called recursively in Volt
Version 2.0.4 Stable
- Fixed bug in
Phalcon\Mvc\Model::update()
that mistakenly 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 both Phalcon\Mvc\Model andPhalcon\Mvc\Collection
instances. This interface allow Mvc\Model\Validators being used in Mvc\Collection - Added
Phalcon\Session\Adapter::setName()
to change the session name - Added BIGINT column type 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 to
Phalcon\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 inDb\Adapter\Pdo\Oracle
- Added support for afterFetch in
Mvc\Collection
- Added 'beforeMatch' parameter in @route annotation of
Mvc\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()
Version 2.0.3 Stable
- Added support for Behaviors in Phalcon\Mvc\Collection
- Added SoftDelete and Timestampable behaviors to Collections
- Implemented Namespace aliases in PHQL
- Now you can define if a virtual foreign key must ignore null values or not
- Fixed bug that added two ? in Mvc\Url::get when using query parameters (#10421)
- Now string attributes in models can be marked to allow empty string values (#440)
- Added an option to return the SQL to be generated from a Mvc\Model\Query instance (#1908)
- Fix doesn't correct column domain in
Phalcon\Db\Dialect::select()
see #10439 - Added support for DOUBLE type in MySQL
- Phalcon\Tag\Select now handles array values as strings avoiding that zero will be handled as empty string (#2921)
- PHQL now supports CASE/WHEN/ELSE expressions (#651)
- Fixed bug that passes non-string values to Phalcon\Crypt::encrypt from Phalcon\Http\Cookies
- Fixed bug that didn't pass the schema name in the sequence name (PostgreSQL)
- Attribute persistent is now removed from the DNS attributes in PDO connections to avoid errors in PostgreSQL (#10484)
Version 2.0.2 Stable
- Added
stats()
methods to Beanstalk - Fixed segfault when a docblock does not have annotations #10301
- Fixed wrong number of parameters passed when triggering an event in Mvc\Collection
- Now Mvc\Model checks if an attribute has a default value associated in the database and ignores it from the insert/update generated SQL
- Re-added Http\Request::hasPut() (#10283)
- Phalcon\Text: Added method reduceSlashes() - Reduces multiple slashes in a string to single slashes
- Phalcon\Text: Added method concat() - Concatenates strings using the separator only once without duplication in places concatenation
- Added conditional on Session adapter start() to check if the session has already been started
- Added status() function in Session adapter to return the status of the session (disabled/none/started)
- Implementation of subqueries as expressions in PHQL
- Performance improvements focused on PHP 5.6
Version 2.0.1 Stable
2.0.1
- Fixed segfaults caused by static caches in <= PHP 5.5 builds
- Added missing Phalcon\Debug::listenLowSeverity
- Added new theme in Phalcon\Debug
- Allow to count and iterate Phalcon\Session\Bag as in 1.3.x
- Renamed getEventsManager to getInternalEventsManager in Phalcon\Di to avoid collision
with existing services - Added constants FILTER_* to Phalcon\Filter for filters names
- Fixed multibyte characters in cssmin/jsmin
- Added Phalcon\Security::destroyToken() to remove current token key and value from session removed first argument (password), since it's not used in the function
- Restored alternative hash algorithms in Phalcon\Security that were available in 1.3.x
- Fixed bug that makes instances returned in Model::findFirst to be not completely initialized
- Added support for general SELECT ALL/SELECT DISTINCT in PHQL
- Added support for "not in" test in Volt
- Phalcon\Debug\Dump
-- Renamed method var() to variable()
-- Renamed method vars() to variables() - Phalcon\Mvc\Model::findFirst() now allows hydration (#10259).
Version 2.0.0 Stable
- Full rewrite of most components in Zephir
- Added Phalcon\Mvc\Micro::error for better handling of exceptions
- Phalcon\Forms\Form::label does not share attributes with the ones that belong to the element
- Added parameter 'params' to set default conditions when retrieving related records
- Added filters "int!" and "float!" that cast values to the respective type
- Filter "alphanum" now uses a regular expression instead of internal functions for better behaviour in 64bits
- Added 'allowEmpty' option in Phalcon\Validation validators to skip validation if the value is empty
- Added Phalcon\Validation::setDefaultMessages to set default values in validators
- Added Phalcon\Validation\Validator\Numericality
- Added events in Phalcon\Di: beforeServiceResolve / afterServiceResolve
- Mysql database introspector now uses DATABASE() as default schema
- Added option to disable cache keys in Cache\Backend\Memcache
- Mvc\View component is now disabled automatically when redirecting using Http\Response
- Mvc\Model::dynamicUpdate now works better as it compares if every field has changed according to its data type
- Added Db\Adapter\Pdo::getErrorInfo() to obtain the last error generated in a PDO connection
Version 1.3.4 Stable
- Fix improper access to \Phalcon\Debug::$_charset (#2840)
- Fix segfault in Phalcon\Mvc\Collection when an invalid parameter is passed as conditions
- Fix segfault when MongoClient does not return a valid collection in Phalcon\Mvc\Collection
- Fix possible memory corruption when phalcon_concat_self does not properly separate values
Version 1.3.3 Stable
Version 1.3.2 Stable
- fix inverted test in Model/setSnapshotData() (issue #2466)
- Updated Phalcon\Queue\Beanstalk\Job::touch comment
- Fixed use columns as referenced columns in mysql createTable() reference...
- #2414 - Removed check for DBG in session/adapter
- Updated Model::__set
- #1989 Supported \Phaclon\Db\Index: TYPE
- Updated Phalcon\Mvc\Model\Query\Builder::groupBy
- Validation, setDefaultMessages fix
- Fix pagination nativeArray test-unit failed
- Add Phalcon\Translate\Adapter\Gettext
- Add Phalcon\Config\Adapter\Yaml
- #1803 Bug join alias
- Fix valid function for the first call
- Acl bug
- #2402 issue
- Ignore "value" attribute in TextArea.
- Add Phalcon\Http\Client\Adapter\Curl
- #2394 Add Phalcon\Validation\MessageInterface
- Relative namespace
- #2386
- Fixing a typo
- #2375 Add check messages is object in Phalcon\Validation::appendMess...
- Update affected rows for selects.
- #2196: Declare missing functions
- Fix broken condition
- Add Phalcon\Mvc\Model\MetaData\Strategy
- Fix offsetUnset
- Changing "file_exists" funciton for "is_file".
- Fix bug about updated property for Phalcon\Session*
- #2291 Middlewares do not stop operation when before event triggered in Micro as documented http://docs.…
- #1608 about Phalcon\Mvc\Router\Annotations
- #2019 and added tests
- model: added methods arg infos
- #2319 In
Model::_postSaveRelatedRecords
add check whether value is object - #2321: Fixed the null value for position
- #2313 about Phalcon\Annotations\Annotation
- #2229 (cast and convert not working)
- Add method Phalcon\Assets\Collection::addFilter
- Add Phalcon\Session\Adapter\memcache and Phalcon\Session\Adapter\Libmemcached
- Add class Phalcon\Session\Adapter\Libemcached
- Add class Phalcon\Session\Adapter\Memcache
- \Phalcon\Tag::XHTML5 was returning empty string
- #2278 add Phalcon\Logger\Multiple::CRITICAL
- Tag, add title separator to append/prepend title
- #2250 Updated Phalcon\Db\Dialect::select
- #2270 updated phalcon_camelize
- Add namespace support for view
- #2259 Updated \Phalcon\Image\Adapter::crop
- #2262
\Phalcon\Logger\Formatter\Json
Wrong number of parameters - #2244 add judge conditions in
Phalcon\Mvc\Model\Manager::getRelationRecords
- Removed final keyword from Model constructor
- #2111 – replacing bindParam to bindValue to avoid unexpected reference changes
- #2002 Tag::linkTo() to allow the addition of query string parameters
- Add
allowEmpty
option to \Phalcon\Mvc\Model\Validator* - Use phalcon_camelize for namesapce Add \Phalcon\Session\Adapter::setId Fixed #1932 Phalcon\Http\…
- #2111 – replacing bindParam to bindValue to avoid unexpected reference changes
- Fix wrong issent() call on non Response objects
- #2236 - in mysql tinyint(1) is not boolean it's an int between 0 and 127
- Add \Phalcon\Session\Adapter::setId
- Fix BUG \Phalcon\Model\Validate*
- Travis fast-finish builds
- #2157 and added tests
- #2196 Declared missing functions
- Add
allowEmpty
option to \Phalcon\Mvc\Model\Validator* - #2002 Tag::linkTo() to allow the addition of query string parameters
- #2018 add method \Phalcon\Db\Result\Pdo::nextRowset
- Use phalcon_camelize for namesapce
- #1932 Phalcon\Http\Request\File extend SplFileInfo