* status: new => closed
* resolution: => fixed
Old description:
> When creating models from a schema.yml file you have the option to add
> several validators:
>
> {{{
> Contact:
> tableName: contact
> columns:
> name:
> type: string(255)
> notblank: true
> email:
> type: string(255)
> email: true
> attributes:
> validate: true
> }}}
>
> But if you want to add a custom validator doctrine will not know it and
> an exception is thrown like:
>
> ''Invalid schema element named "customvalidator" at path
> "Contact->columns->customfield"''
>
> I attached a patch which will add a static function to the Doctrine_Lib
> class called "registerValidators" to solve this problem.
>
> With this patch we can call
> Doctrine_Lib::registerValidators('customvalidator') or
> Doctrine_Lib::registerValidators(array('customvalidator',
> 'customvalidator2')).
> Afterwards the build task will complete without throwing an exception.
New description:
--
Comment:
In r5231 this was fixed.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1524#comment:2>