/** * Remove one asset from the asset collection * * @param Asset $asset * @return boolean */ public function removeAsset(Asset $asset) { if ($this->assets->contains($asset) === TRUE) { $this->assets->removeElement($asset); return TRUE; } return FALSE; }
/** * Remove one asset from the asset collection * * @param Asset $asset * @return boolean */ public function removeAsset(Asset $asset) { if ($this->assets->contains($asset) === true) { $this->assets->removeElement($asset); return true; } return false; }