filterByTemplateId($this->getTemplateId()); } /** * {@inheritDoc} */ public function preInsert(ConnectionInterface $con = null) { parent::preInsert($con); $this->setPosition($this->getNextPosition()); return true; } }