[TYPO3-mvc] Object relation - get children

Henjo Hoeksma | Stylence me at henjohoeksma.nl
Sat Feb 2 15:51:54 CET 2013


Hi Jan,

On Sat, Feb 2, 2013 at 12:40 PM, Jan Kornblum <jan.kornblum at gmx.de> wrote:

> Hi Henjo,
>
>
>  You put the relation on your project object.
>> This means you should delete the customer relation from your project model
>> and add a relation field projects to your customer model.
>>
>
> Thanks a lot. Now it works.
>
> Is see that now there is a inline-relation in customer-tca. also there is
> a passthrough-field in project-tca.
>
> Question:
> Is it possible to to do it without inline-type? because i'm not able to
> "move" a project to another customer in BE with this inline construction.
> Also, you're not able to the assigned customer in a project-record. How
> could this be handled better?
>
TCA of course :-)

>
> Both database tables now own a input-field for the related table on the
> opposite side. in classical way i would just add a field "customer" to
> project-table (as done before). but this is "the way extbase does it" and i
> should not care and think about it, right?
>
Nope, it is IRRE / extension builder output. You are free to use the TCA
you need.
One advice though: try staying loyal to your aggregate root as much as
possible and keep away from mm relationships if possible as well. It will
make your program work cleaner and faster.

>
> Kind regards, Jan

Have fun!

Henjo

>
>
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list