[TYPO3-mvc] Attributes on irre-relations possible?
Steffen Ritter
info at rs-websystems.de
Sun Mar 21 20:10:11 CET 2010
Am 21.03.2010 19:31, schrieb Andreas Kießling:
> Hi,
>
> i have created a basic setup for an extension with the kickstarter. I
> have a many to many relation, in which i need an attribute, to be
> precise: another irre relation. The irre relation could probably be
> replaced by a select-relation. In TCA / Backend, everything seems
> already to be working with very few modifications to the generated code
> (Great work with the kickstarter btw :-) ). But how can i get the
> attribute / values from the relation? Is that even possible with current
> extbase?
>
> Back in the days of pibase, that would involve several db queries, so i
> guess, i may need to build the queries on my own in the repository. Or
> is there some other way / best-practice to fetch that data?
>
> Regards,
> Andreas
Hey,
I talked about IRRE Handling with Jochen last week.
There's a difference between what the "tutorial" and the "core-api"
tells IRRE Users.
Jochen went along the tutorials building the IRRE. But this prooved as
complicated since there's no real "prediction" possible what the child
record will be (same configuration, different result).
The current CORE API is a bit more precise there and does not allow
"dirty configuration" but also enables "typical mm support".
Since the core-api version technically is more precise, and tutorials
some kind of outdated, we came to the conclusion that in 4.3.x we will
stick to the current behavoiur and try to fix as much as possible and
with 4.4 (and so extbase 1.2) introduce the new behavoiur along api.
So in short:
this won't be possible in extbase <= 1.1.x (4.3.x)
for extbase 1.2.0 (>= 4.4.0) IRRE handling will be refactored, then
foreign_selector will do its jobs in extbase correctly.
You may use "1.2" patches (afaik currently not public). I may provide
mine, which work for now, but for shure they won't be the exact 1.2
implementation.
reagrds
Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list