/** * Sets the bean name. * * @param string $beanName * @throws Exception\InvalidBeanException */ public function setBeanName($beanName) { if (null !== $this->entityBeanName && $beanName != $this->entityBeanName) { throw new Exception\InvalidBeanException($beanName, $this->entityBeanName, $this); } parent::setBeanName($beanName); }