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