我有一个“烘焙的” cakePHP-3.0.0页面,其中的字段定义为
date_of_birth date DEFAULT NULL
在表
users
中。当我单击
add
函数的提交时,我得到关于如何修复有什么建议吗?
堆栈跟踪为
preg_match - [internal], line ??
Cake\Validation\Validation::_check() - CORE\src\Validation\Validation.php, line 763
Cake\Validation\Validation::date() - CORE\src\Validation\Validation.php, line 346
Cake\Validation\RulesProvider::__call() - CORE\src\Validation\RulesProvider.php, line 53
Cake\Validation\RulesProvider::date() - CORE\src\Validation\ValidationRule.php, line 138
Cake\Validation\ValidationRule::process() - CORE\src\Validation\ValidationRule.php, line 138
Cake\Validation\Validator::_processRules() - CORE\src\Validation\Validator.php, line 554
Cake\Validation\Validator::errors() - CORE\src\Validation\Validator.php, line 128
Cake\ORM\Marshaller::_validate() - CORE\src\ORM\Marshaller.php, line 185
Cake\ORM\Marshaller::merge() - CORE\src\ORM\Marshaller.php, line 341
Cake\ORM\Table::patchEntity() - CORE\src\ORM\Table.php, line 1899
App\Controller\UsersController::add() - APP/Controller\UsersController.php, line 48
Cake\Controller\Controller::invokeAction() - CORE\src\Controller\Controller.php, line 406
Cake\Routing\Dispatcher::_invoke() - CORE\src\Routing\Dispatcher.php, line 114
Cake\Routing\Dispatcher::dispatch() - CORE\src\Routing\Dispatcher.php, line 87
最佳答案
请阅读答案
https://github.com/cakephp/cakephp/issues/5611#issuecomment-69254634
该问题已解决,请使用“composer update”更新您的cakephp版本。
请注意,在标记了新发行版之前,您将不得不在composer中使用 dev-master
。