Skip to content

Undefined class constant 'BUILD_VALIDATOR_EVENT'  #4

@benoitkopp

Description

@benoitkopp

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions