[TYPO3-mvc] Get repository object from table name
Raymund Tump
raymund.tump at gmx.de
Thu Jan 27 10:36:40 CET 2011
Hi Thomas,
> Hello!
> Is there a way to get a repository for a table name?
> In detail I got a group/db record name like
> "tx_myext_domain_model_record_213" and I want to
> retrieve the record from this table with the id 213.
> Any idea how to handle that?
I'm not entirely sure if I understand your question. Is the
"tx_myext_domain_model_record_213" a table name or the entry with the
UID 213?
If you already have a repository for your records and 213 is a UID I
guess this should help
$recordRepository->findOneByUid(213);
--
Regards
Raymund
More information about the TYPO3-project-typo3v4mvc
mailing list