[TYPO3-mvc] Questions regarding Extbase Object Persistence
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Tue Dec 22 20:38:01 CET 2009
Hello Jochen,
thanks for your reply.
I kept using MM tables tho,
which is imho cleaner, also if I
don't like those 'extra' tables.
With 'inline records' I would like to know if
it is possible to persist related objects of a
object which comes from a frontend form.
In the backend those referenced objects are related
to each other by fields defined of type 'inline'.
So I wonder if I could create a form, which e.g. persists
a 'company' object with name, address etc. including a subset
of 'employees', which would also come with the same form?
Thanks,
Thomas
Jochen Rau schrieb:
> Hi.
>
> schrieb Sebastian Kurfürst:
>>> 1) Is it possible to use m..n relations using extbase
>>> without the need of using *_mm tables? Cause' I don't
>>> really like them. xD
>> Not really. BTW: mm tables are really a clean database design, so please
>> get used to it ;)
>
> It's possible by defining a 'foreign_table' but omitting 'foreign_field'
> on both sides. This results in a comma separated list on both sides. But
> as Sebastian already said ... you are warned ;-)
>
>>> 2) I haven't tried yet, but is it possible to persist
>>> sub-objects (properties of models) as inline-records
>>> throu a frontend form? Like I want to display properties
>>> of a model object in a form for selecting/editing and
>>> then saving the changes.
>> What do you mean with "inline records"? Somehow serialized in the top
>> object?
>
> I'll add another "?".
>
> Regards
> Jochen
>
More information about the TYPO3-project-typo3v4mvc
mailing list