Optimized implementation of format types

This commit is contained in:
Kevin Frantz
2018-09-14 18:26:09 +02:00
parent f8138fb361
commit 66008bc309
21 changed files with 185 additions and 89 deletions

View File

@@ -2,8 +2,8 @@
namespace App\Entity\Attribut;
use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\NodeInterface;
use Doctrine\Common\Collections\Collection;
/**
* @author kevinfrantz
@@ -19,16 +19,16 @@ trait ParentsAttribut
* inverseJoinColumns={@ORM\JoinColumn(name="node_id", referencedColumnName="id")}
* )
*
* @var ArrayCollection|NodeInterface[]
* @var Collection|NodeInterface[]
*/
protected $parents;
public function getParents(): ArrayCollection
public function getParents(): Collection
{
return $this->parents;
}
public function setParents(ArrayCollection $parents): void
public function setParents(Collection $parents): void
{
$this->parents = $parents;
}