/** * Declares an association between this object and a ChildMovie object. * * @param ChildMovie $v * @return \Engine\Actor The current object (for fluent API support) * @throws PropelException */ public function setMovie(ChildMovie $v = null) { if ($v === null) { $this->setMovieId(NULL); } else { $this->setMovieId($v->getId()); } $this->aMovie = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildMovie object, it will not be re-added. if ($v !== null) { $v->addActor($this); } return $this; }