Esempio n. 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildMovie $movie Object to remove from the list of results
  *
  * @return ChildMovieQuery The current query, for fluid interface
  */
 public function prune($movie = null)
 {
     if ($movie) {
         $this->addUsingAlias(MovieTableMap::ID, $movie->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * Filter the query by a related \Engine\Movie object
  *
  * @param \Engine\Movie|ObjectCollection $movie The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildActorQuery The current query, for fluid interface
  */
 public function filterByMovie($movie, $comparison = null)
 {
     if ($movie instanceof \Engine\Movie) {
         return $this->addUsingAlias(ActorTableMap::MOVIE_ID, $movie->getId(), $comparison);
     } elseif ($movie instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ActorTableMap::MOVIE_ID, $movie->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByMovie() only accepts arguments of type \\Engine\\Movie or Collection');
     }
 }