public function addSharedGroup(Group $group) { $bean = $this->bean(); if ($bean === null) { return $this; } $bean->sharedGroupList[] = $group->bean(); return $this; }