[TYPO3-mvc] error: Could not determine the child object type
Thomas Mammitzsch
thomas at visualworx.de
Wed Jul 7 11:27:52 CEST 2010
okay found it. I forget an asterisk in the php doc commment for a member
field of my FrontendUser class. So that seems to mess up reflection.
before:
/*
* @var integer
*/
protected $disable;
after:
/**
* @var integer
*/
protected $disable;
regards, Thomas
Am 06.07.2010 19:50, schrieb Thomas Mammitzsch:
> hi list,
>
> i do a custom query in my repository:
>
> /**
> * find user by optinCode
> * @param string $optincode
> * @return Tx_MyExt_Domain_Model_FrontendUser
> */
> public function findByOptinCode($optincode) {
> $query = $this->createQuery();
> $query->getQuerySettings()->setRespectEnableFields(FALSE);
> $query->matching(
> $query->logicalAnd(
> $query->equals('Optincode', $optincode),
> $query->equals('deleted', 0)
> )
>
> );
>
> return $query->execute();
> }
>
> The right row is fetched from database. But when the result is mapped to
> the Tx_MyExt_Domain_Model_FrontendUser object i get a "Could not
> determine the child object type" error. Any ideas?
>
> regards, Thomas
More information about the TYPO3-project-typo3v4mvc
mailing list