/** * Set option enhanced to be able to set id * * @param string $key * @param mixed $value * @return \Menu\Model\Menu\Structure\ProxyAbstract */ public function setOption($key, $value) { if ('id' == $key) { $this->proxyBase->setOption($key, $value); return $this; } return parent::setOption($key, $value); }
/** * Set option enhanced to be able to set id * * @param string $key * @param mixed $value * @return \Grid\Banner\Model\Banner\Structure\ProxyAbstract */ public function setOption($key, $value) { if ('id' == $key) { if (empty($this->proxyBase)) { $this->proxyBase = new ProxyBase(array('id' => $value)); } else { $this->proxyBase->setOption($key, $value); } return $this; } return parent::setOption($key, $value); }