Constraints now have to explicitely define whether they target a
constraint, a class or both.
class MyConstraint extends Constraint
{
public function targets()
{
return self::PROPERTY_CONSTRAINT;
}
}
Cheers,
Bernhard
--
Software Architect & Engineer
Blog: http://webmozarts.com
Twitter: http://twitter.com/webmozart
2011/1/19 Bulat Shakirzyanov <[email protected]>:
> Will do, Lukas
>
> Sent from my Nexus One
>
> On Jan 19, 2011 8:47 AM, "Lukas Kahwe Smith" <[email protected]> wrote:
>>
>> On 19.01.2011, at 14:44, Jeremy Mikola wrote:
>>
>>> I don't see why these needed to be property-level validators.
>>>
>>> Bulat's original ODM Unique Validator had code in it to assign the
>>> "error" to the property, even though it was a class-level validator. I'm not
>>> sure how Gordon's ORM validator worked.
>>
>> If that is possible that would be fine indeed. Maybe Bulat can try to make
>> this a core feature in a pull request?
>>
>> regards,
>> Lukas Kahwe Smith
>> [email protected]
>>
>>
>>
>> --
>> 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 developers" 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-devs?hl=en
>
> --
> 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 developers" 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-devs?hl=en
>
--
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 developers" 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-devs?hl=en