public function __construct(AbstractPermitionEntity $permition) { parent::__construct($permition->getAttributes()); $this->permition = $permition; $this->attachBehaviors($permition->behaviours()); }