[TYPO3-mvc] Getting object uid after "add"
Emmanuel Denoyelle
denoyell at lippmann.lu
Mon Jan 16 17:14:07 CET 2012
Hi everyone,
I am wondering how to get an object uid just after adding it by the
repository.
For example :
$this->ficheRepository->add($newFiche);
$ficheId = $newFiche->getUid();
In this code, $ficheId stays uninitialize.
How can I get the uid of an objects that just have been added en the
database ?
Thanx
Emmanuel DENOYELLE
More information about the TYPO3-project-typo3v4mvc
mailing list