/** * Declares an association between this object and a UserBikes object. * * @param UserBikes $v * @return UserEquipement The current object (for fluent API support) * @throws PropelException */ public function setUserBikes(UserBikes $v = null) { if ($v === null) { $this->setBikeId(NULL); } else { $this->setBikeId($v->getUserBikeId()); } $this->aUserBikes = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the UserBikes object, it will not be re-added. if ($v !== null) { $v->addUserEquipement($this); } return $this; }