2
votes

Does anyone knows if it is possible to remove recursive validation from model in extbase TYPO3?

Let's say I have model with following properties:

/**
 * @var string
 * @validate NotEmpty
 */
protected $title;

/**
 * @var string
 * @validate NotEmpty
 */
protected $city;

 /**
 * @lazy
 * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<my/model/classname>
 */
protected $categories;

When passing my object to controller action I want only title and city to be validated. I would like categories not to be validated. Extbase is validating all relations in ObjectStorage recursively - so if my/model/classname has also another ObjectStorage relations they will be validated too.

1
I have the same problem. Someone know how to resolve this?patryno

1 Answers