cakephp 3.1.8 发布,此版本的更新内容如下:
bug修复:
using matching() on a belongstomany association with conditions no longer emits invalid sql. ( @markstory )
generated reciprocal belongstomany associations have the original conditions applied to them. ( @markstory )
inflector::camelize() now caches results ( @ypnos-web )
connectionmanager::config() no longer clones objects passed in. ( @lorenzo )
postgres schema reflection now only reads constraints in the connection's schema ( @lorenzo )
memcached can now connect to unix domain sockets. ( @tersmitten )
treebehavior now uses expression objects for field updates. this makes it compatible with datasources requiring identifier quoting. (@skiedr, @lorenzo )
fixed incorrect behavior of texthelper::autolink() when crlfs are present. ( @jeremyharris )
the fulldebug argument of testcase::asserthtml() now works as documented. ( @jeremyharris )
helpers now allow newlines in javascript confirm messages. ( @markstory )
the cakephp-plugins.php file can now be located when cakephp/core is used as a standalone component. ( @harikt )
simulated get requests (via method overriding) no longer post data populated. this prevents get requests from looking like they are post requests that may cause unintentional side-effects. ( @lorenzo )
securitycomponent now validates data whenever $request->data is populated. this allows securitycomponent to apply to patch and delete requests. ( @markstory , @chinpei215 )
controller::$name is correctly inflected when using the base route class. ( @markstory )
小的改进:
fixtures can now use public $import = ['model' => 'articles'] to import schema and records from a defined model. ( @dereuromark )
improved api docs. ( @bcrowe , @mathieu , @tzaoh , @sergey , @luke83 )
connectionmanager::config() now accepts a callable. this makes it consistent with log::config() . ( @lorenzo )
query::set() now accepts a builder callable. ( @lorenzo )
database\type now allows objects to be injected via set(). ( @jadb )
sql query logs now include execution time and rows returned. ( @bernat arlandis)
error logs now include referring url if it is available. ( @flavius )
详情请看: 发行说明
下载页面: 3.1.8