-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
If you try to edit or to add an object in your database, you could have this error:
Error: Undefined class constant 'BUILD_VALIDATOR_EVENT'
File C:\wamp64\www\bob_dilab\vendor\cakephp\cakephp\src\Validation\ValidatorAwareTrait.php
Line: 176
I added the class constant in file vendor\dilab\cake-mongo\src\Collection.php:
const BUILD_VALIDATOR_EVENT = 'Model.buildValidator';
Its the same value than in the file vendor\cakephp\cakephp\src\ORM\Table.php
I don't know if it is the right way to fix it but it made the trick for me.
Metadata
Metadata
Assignees
Labels
No labels