[FLOW3-general] Get identifier of entity object

Sebastian Kurfürst sebastian at typo3.org
Tue May 17 06:36:23 CEST 2011


Hey Kevin,

>         return $this->persistenceManager->getIdentifierByObject($this);
That's fine!

However, I'd suggest to not do that in your Domain Model, but in the
other places where you need this identity. The Domain Object usually
does not need to know its identity.

Greets,
Sebastian


More information about the FLOW3-general mailing list