[TYPO3-english] ExtBase - Ignore validation on property

Jan Bednarik info at bednarik.org
Thu Feb 12 17:44:11 CET 2015


Hi,

I have 2 objects A and B, both have defined validations. There's a 
custom property on object "B" (meaning not stored in database) that has 
validation on it.

Now, the problem is, that when I'm editing object A that has relation to 
B, the object B is validated, which I don't want.

I've tried

	/**
	 * B
	 *
	 * @var \Foo\Bar\B
          * @ignorevalidation $b
	 * @lazy
	 */
	protected $b = NULL;

but that has no effect. Nor has @ignorevalidation $a.b in action method 
annotation.

Is there a solution?

Thanks

Jan


More information about the TYPO3-english mailing list