1
0
mirror of synced 2025-01-18 14:31:40 +03:00

With TO_MANY relations, class filed is instanceof ArrayCollection,

instead of targetEntity class type.
This commit is contained in:
Asmir Mustafic 2011-10-19 09:25:40 +02:00
parent 8f092812c4
commit be3adfb35e

View File

@ -806,7 +806,12 @@ public function <methodName>()
{
$lines = array();
$lines[] = $this->_spaces . '/**';
$lines[] = $this->_spaces . ' * @var ' . $associationMapping['targetEntity'];
if ($associationMapping['type'] & ClassMetadataInfo::TO_MANY) {
$lines[] = $this->_spaces . ' * @var \Doctrine\Common\Collections\ArrayCollection';
}else{
$lines[] = $this->_spaces . ' * @var ' . $associationMapping['targetEntity'];
}
if ($this->_generateAnnotations) {
$lines[] = $this->_spaces . ' *';