public function addPermissionRelatedById(ChildPermission $l)
    {
        if ($this->collPermissionsRelatedById === null) {
            $this->initPermissionsRelatedById();
            $this->collPermissionsRelatedByIdPartial = true;
        }

        if (!$this->collPermissionsRelatedById->contains($l)) {
            $this->doAddPermissionRelatedById($l);
        }

        return $this;
    }