/** * Delete UserApi from User * * @param UserApi $api * * @return User */ public function removeApiKey(UserApi $api) { $this->apiKeys->removeElement($api); return $this; }
/** * Delete UserApi from User * * @param UserApi $api * * @return User */ public function removeApiKey(UserApi $api) { if ($this->apiKeys->contains($api)) { $this->apiKeys->removeElement($api); } return $this; }