public function __construct(Vial $template = null, $flip = true) { parent::__construct($template, $flip); $this->id = 1; $this->setupDate = new \DateTime('2000-01-01 00:00:00'); $this->targetStockVial = new StockVial(); $this->targetStockVial->setStock(new Stock()); $this->targetStockVial->getStock()->setName('test stock'); $this->targetStockVial->getStock()->setGenotype('test / test'); $this->embryoCount = 100; $this->constructName = 'construct'; }