public function __construct(PersistentResource $resource) { parent::__construct($resource); $this->variants = new ArrayCollection(); }