[TYPO3-mvc] Problems with loading an object from database

Ephraim Härer ephraim at mokom01.com
Thu Jul 28 16:35:36 CEST 2011


Hello,

I could locate the error.
The problem was, that no entry could be found, because the field 
"hidden" was set to true.
In my extension without the Extension Builder I could read this rows 
from database...


Am 27.07.2011 20:51, schrieb Ephraim Härer:
> Hello,
> in my first Extbase-extension I could load an object from database like
> this:
>
> if ($this->request->hasArgument('key')){
> $thekey = $this->request->getArgument('key',$key);
> $check = new Tx_Myextension_Domain_Model_Entries;
> $check = $this->entriesRepository->findOneByChangekey($thekey);
> }
>
> And then for example:
> $check->setName('New Name');
>
> But now I created a new extension with the extension builder and this
> code doesn't work now.
>
> What's wrong? Anybody an idea?
>


-- 
Mit freundlichen Grüßen
Ephraim Härer


More information about the TYPO3-project-typo3v4mvc mailing list