[TYPO3-mvc] Simple query by uid question
Felix Eggbert
eggbert at phez.com
Thu Oct 7 15:02:16 CEST 2010
Thanks for your quick reply...Whoops, that was indeed wrong and of course
explains the empty result...
However now I get an exception "Unsupported relation for contains()"...
Did I set up the relation correctly within my Category model?
class Tx_Myext_Domain_Model_Category extends
Tx_Extbase_DomainObject_AbstractEntity {
/**
* parent
* @var Tx_Myext_Domain_Model_Category
* @lazy
*/
protected $parent;
/**
* Setter for parent
*
* @param Tx_Myext_Domain_Model_Category $parent parent
* @return void
*/
public function setParent(Tx_Myext_Domain_Model_Category $parent) {
$this->parent = $parent;
}
/**
* Getter for parent
*
* @return Tx_Myext_Domain_Model_Category parent
*/
public function getParent() {
return $this->parent;
}
}
Thanks a lot!
Regards,
Felix
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Sebastian Kurfürst
Gesendet: Donnerstag, 7. Oktober 2010 14:27
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] Simple query by uid question
Hey,
> return $query->execute;
$query->execute();
Could it be that the curly braces are missing?
Greets,
Sebastian
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list