Beispiel #1
0
 /**
  * Filter the query by a related Turno object
  *
  * @param   Turno|PropelObjectCollection $turno  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   JugadorMesaQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByTurno($turno, $comparison = null)
 {
     if ($turno instanceof Turno) {
         return $this->addUsingAlias(JugadorMesaPeer::ID, $turno->getJugadorMesaId(), $comparison);
     } elseif ($turno instanceof PropelObjectCollection) {
         return $this->useTurnoQuery()->filterByPrimaryKeys($turno->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTurno() only accepts arguments of type Turno or PropelCollection');
     }
 }