Cphalcon 3.1.0-alpha1(预览版) 发布了,这是 3.1.x 系列的首个公开 alpha 版。
更新如下:
Added
Phalcon\Validation\Validator\Callback,Phalcon\Validation::getDataAdded the ability to truncate database tables
Added
Phalcon\Mvc\Model\Binder, class used for binding models to parameters in dispatcher, micro, addedPhalcon\Dispatcher::getBoundModelsandPhalcon\Mvc\Micro::getBoundModelsto getting bound models, addedPhalcon\Mvc\Micro\Collection\LazyLoader::callMethodAdded afterBinding event to
Phalcon\DispatcherandPhalcon\Mvc\Micro, addedPhalcon\Mvc\Micro::afterBindingAdded the ability to set custom Resultset class returned by find() #12166
Added the ability to clear appended and prepended title elements (Phalcon\Tag::appendTitle, Phalcon\Tag::prependTitle). Now you can use array to add multiple titles. For more details check #12238.
Added the ability to specify what empty means in the 'allowEmpty' option of the validators. Now it accepts as well an array specifying what's empty, for example ['', false]
Added the ability to use
Phalcon\ValidationwithPhalcon\Mvc\Collection, deprecatedPhalcon\Mvc\Model\ValidatorclassesFixes internal cache saving in
Phalcon\Mvc\Model\Binderwhen no cache backend is usedAdded the ability to get original values from
Phalcon\Mvc\Model\Binder, addedPhalcon\Mvc\Micro::getModelBinder,Phalcon\Dispatcher::getModelBinderAdded
prependparameter toPhalcon\Loader::registerto specify autoloader's loading order to top mostFixed
Phalcon\Session\Bag::removeto initialize the bag before removing a value #12647Fixed
Phalcon\Mvc\Model::getChangedFieldsto correct detect changes from NULL to Zero #12628Fixed
Phalcon\Mvc\Modelto create/refresh snapshot after create/update/refresh operation #11007, #11818, #11424Fixed
Phalcon\Mvc\Model::validateto correctly set code message #12645Added the value of the object intanceof Interface to
Phalcon\Acl\Adapter\MemoryFixed
Phalcon\Mvc\Modelto correctly add error when try to save empty string value to not null and not default column #12688Fixed
Phalcon\Validation\Validator\Uniquenesscollection persistent condition
下载地址
引用来自“Xiphin”的评论
有支持php7.1么