Hi, i work with Symfony2 PR3.
class MyObject {
protected $maxLimit = 200;
protected $value;
public static function loadValidatorMetadata(ClassMetadata
$metadata)
{
$maxLimit = '??'; // as the function is static we cannot do
$this->maxLimit
$metadata->addPropertyConstraint('value', new Constraints
\Max(array(
'limit' => $maxLimit
)));
}
}
How to create a property constraint depending of another property on
the same object ?
thanks in advance.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en