[FLOW3-general] Exception by Doctrine
Georg Grossberger
georg at grossberger.at
Sat Nov 12 18:15:03 CET 2011
Hi list
I'm currently working on a (rather big) domain model. The problem is,
FLOw3 seems to ignore the Collection class / interface when building the
database schema for :create or :migrate operations.
Example
A class like this:
<?php
namespace My\Package\Domain\Model;
use TYPO3\FLOW3\Annotations as FLOW3;
use Doctrine\ORM\Mapping as ORM;
/**
*
* @FLOW3\Scope("prototype")
* @FLOW3\Entity
*/
class Inventory {
/**
* Items
*
* @var
\Doctrine\Common\Collections\Collection<\My\Package\Domain\Model\Item>
* @FLOW3\Lazy
* @ORM\ManyToMany
*/
protected $items;
/**
* Constructor
*
*/
public function __construct() {
$this->items = new \Doctrine\Common\Collections\ArrayCollection();
}
}
?>
running "./flow3 doctrine:update" ends like this:
More Information
Exception code #1295973082
File
...\TYPO3_FLOW3_Persistence_Doctrine_Mapping_Driver_Flow3AnnotationDriver_Original.php
line 80
A quick look at the code revealed, that Doctrine asks the FLOW3 driver
for the meta data for \Doctrine\Common\Collections\Collection or
\Doctrine\Common\Collections\ArrayCollection. FLOW3 does not load those
information and throws an exception instead.
What am I missing?
Greetings,
Georg
More information about the FLOW3-general
mailing list