/** * (non-PHPdoc) * @see ComBaseControllerBehaviorIdentifiable::fetchEntity() */ public function fetchEntity(KCommandContext $context) { if ($this->isDispatched() && $this->getRequest()->alias) { $this->setIdentifiableKey('alias'); } return parent::fetchEntity($context); }
/** * (non-PHPdoc). * * @see ComBaseControllerBehaviorIdentifiable::fetchEntity() */ public function fetchEntity(KCommandContext $context) { if ($this->isDispatched()) { $username = $this->getRequest()->username; if ($username && $this->getRequest()->get('layout') != 'add') { $this->setIdentifiableKey('username'); } } return parent::fetchEntity($context); }