[TYPO3-mvc] Get orphaned children

"Søren Andersen" hacksaw at zpeed.dk
Tue Apr 9 14:48:28 CEST 2013


Hi Phillip,

You say that I should use the right repository, and you suggest the
registration repository. But as I said, I'm already using that repository.

My problem is that a registration can belong to several exports, so
there's not just one parent.

So my question is, in the registration repository, how do I structure a
query to get all registrations with an empty object storage concerning
exports?

I thought that I could check if the field "exports" in the registrations
table was 0. But it seems that Extbase doesn't really update that field
with the number of relations, as the backend does.

Sincerely,
Søren Andersen

> How about using the right Repository? Use your registration repository and
> get all objects that dont have a parent assigned. If you dont have a
> parent assignment in the registration you have a design problem in your
> domain.
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>




More information about the TYPO3-project-typo3v4mvc mailing list