[TYPO3-mvc] Re: Validation Problem - linked child object is validated but should not be...
Michal Cygankiewicz
mc at amtsolution.pl
Wed Jul 19 10:13:17 CEST 2017
I have the same problem, my relation in the model is defined as below:
/**
* @var \XXX\XXX\Domain\Model\User $user
* @validate NotEmpty
* @lazy
* @copy reference
*/
protected $user = null;
It is defined as lazy but all child objects are validated too. How I can prevent it? I want to check if $user is empty but I don't want child objects to be validated too. Both because it doesn't make sense here and it may cost in case of performence - there is a lot of child objects and those child objects has their child objects too - so validation is checking a lot of things and I simply don't need it here.
TYPO3 7.6.19
More information about the TYPO3-project-typo3v4mvc
mailing list