[TYPO3-50-general] Identity definition - integrity checks?

Martin Kutschker masi-no at spam-typo3.org
Thu Oct 29 12:36:45 CET 2009


Manuel Strausz schrieb:
> Just to clarify, I'm talking about the \F3\FLOW3\Property\Mapper class
> here, and specifically the findObjectByIdentityProperties method.
> The exception is thrown one step later by the transformToObject method.
> Which is confusing, since it just says that the query was unsuccessful
> (but gives no indication as to why).
> I'm really not sure what the intended behaviour should be in this case.
> Should findObjectByIdentityProperties return FALSE when it finds more
> than 1 object, throw an exception, or just return the 1st one? How does
> one prevent duplicate identities in general?
> Sorry for being so nosy, just want to make sure I understand the
> mechanics correctly.
> 
> I'll gladly open a ticket, just wasn't sure if this is a bug at all or
> just a misunderstanding from my side.

Please file the issue.

Masi


More information about the TYPO3-project-5_0-general mailing list