[TYPO3-mvc] RFC: #8083 define default __toString method in Tx_Extbase_DomainObject_AbstractDomainObject
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Nov 10 14:46:38 CET 2010
Hey Masi,
>> For me the workaround was to use {enterprise: job.enterprise.uid}.
>
> But why use an implementation detail of the persistence layer? The uid is probably not the
> identifier of your entity (in domain terms). Ideally you should never see nor use the uid outside
> the persistence layer.
It's stated as workaround. A fix/patch is added to the bugtracker of
according issue.
> Maybe the abstract domain model needs the concept of an identifier field to be set by the concrete
> models.
well, this is not FLOW3 and we're more or less bound to the v4 world,
and there the uid is the identifier for anything. I know that a
dedicated identifier field might be better in domain terms, also in
order for dealing with objects created from other data sources that
might use different identifiers, but adding support for those might
become a bit of a work I fear (how to validate a correct identifier for
a specific model and prevent XSS etc). Also currently I don't see a
urgent need for this, as you already can work with custom identifiers,
but need to make use of those yourself.
My personal POV is to leave that out from extbase and only make it a
Flow3 feature.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list