[TYPO3-mvc] repository issue with contains

Frank Krüger fkrueger-ml at mp-group.net
Tue Jan 13 11:24:56 CET 2015


Hi List,

I got a strange issue on a repositories or-chained contraints (TYPO3
6.2):

The following contraints are part of a repository function, 'member' is
defined as object storage in model 'company':


$orConstraints = array(
$query->equals('owner', $user),
$query->contains('project.pm', $user),
$query->contains('company.member', $user)
);

// *** add or constraints
array_push($constraints, $query->logicalOr($orConstraints));


This works well, but when company is NULL, it seems that the whole
orConstraints-array is ignored.

Any hint would be great.

Cheers,
Frank



More information about the TYPO3-project-typo3v4mvc mailing list