/** * @return \Paragraph\Model\Paragraph\Structure\Content */ public function prepareCreate() { $mapper = $this->getMapper(); $this->bindChild($mapper->create(array('type' => 'contentPlaceholder'))); return parent::prepareCreate(); }
/** * @return \Grid\Paragraph\Model\Paragraph\Structure\Content */ public function prepareCreate() { if (empty($this->created)) { $this->created = new DateTime(); } $mapper = $this->getMapper(); $this->bindChild($mapper->create(array('type' => 'html'))); return parent::prepareCreate(); }