/** * [[@doctodo method_description:canDeleteRelation]]. * * @return [[@doctodo return_type:canDeleteRelation]] [[@doctodo return_description:canDeleteRelation]] */ public function canDeleteRelation() { if (isset($this->relationModel)) { if (!$this->object->allowRogue($this->relationModel)) { return false; } if (!$this->object->canDeleteAssociation($this->relationshipWith)) { return false; } return true; } return false; }