/**
  * Returns a value indicating whether a method is defined.
  *
  * The default implementation is a call to php function `method_exists()`.
  * You may override this method when you implemented the php magic method `__call()`.
  * @param string $name the method name
  * @return boolean whether the method is defined
  */
 public function hasMethod($name)
 {
     return parent::hasMethod($name) || $this->getTranslation()->hasMethod($name);
 }
 /**
  * Returns a value indicating whether a method is defined.
  *
  * The default implementation is a call to php function `method_exists()`.
  * You may override this method when you implemented the php magic method `__call()`.
  * @param string $name the method name
  * @return boolean whether the method is defined
  */
 public function hasMethod($name)
 {
     return parent::hasMethod($name) || is_object($this->getTranslation()) && $this->getTranslation()->hasMethod($name);
 }