[TYPO3-mvc] Howto check if an object exists in a objectstorage
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Jul 7 17:48:40 CEST 2010
Hi,
> I have a problem with a query method, I think it's pretty simple but
> I've never done it. Simple question: how can I check (in a repository
> query) if a property (which is an objectstorage) contains an object?
>
> I tried to use the $query->contains method but it doesn't seem to work.
but that should actually work. Have you already tried "equals"?
Unfortunately I'm quite in a hurry right now - so I can't check in
detail, but I managed what you try with one of those methods IIRC.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list