roles[] = $role; $role->user = $this; } public function addAuthorization(Authorization $authorization) { $this->authorizations[] = $authorization; $authorization->user = $this; } }