コード例 #1
0
ファイル: BaseJugadorQuery.php プロジェクト: kcornejo/usac
 /**
  * Filter the query by a related JugadorMesa object
  *
  * @param   JugadorMesa|PropelObjectCollection $jugadorMesa  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   JugadorQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByJugadorMesa($jugadorMesa, $comparison = null)
 {
     if ($jugadorMesa instanceof JugadorMesa) {
         return $this->addUsingAlias(JugadorPeer::ID, $jugadorMesa->getJugadorId(), $comparison);
     } elseif ($jugadorMesa instanceof PropelObjectCollection) {
         return $this->useJugadorMesaQuery()->filterByPrimaryKeys($jugadorMesa->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByJugadorMesa() only accepts arguments of type JugadorMesa or PropelCollection');
     }
 }
コード例 #2
0
 /**
  * Exclude object from result
  *
  * @param   JugadorMesa $jugadorMesa Object to remove from the list of results
  *
  * @return JugadorMesaQuery The current query, for fluid interface
  */
 public function prune($jugadorMesa = null)
 {
     if ($jugadorMesa) {
         $this->addUsingAlias(JugadorMesaPeer::ID, $jugadorMesa->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
コード例 #3
0
ファイル: BaseMesa.php プロジェクト: kcornejo/usac
 /**
  * @param	JugadorMesa $jugadorMesa The jugadorMesa object to add.
  */
 protected function doAddJugadorMesa($jugadorMesa)
 {
     $this->collJugadorMesas[] = $jugadorMesa;
     $jugadorMesa->setMesa($this);
 }
コード例 #4
0
ファイル: BaseTurnoQuery.php プロジェクト: kcornejo/usac
 /**
  * Filter the query by a related JugadorMesa object
  *
  * @param   JugadorMesa|PropelObjectCollection $jugadorMesa The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   TurnoQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByJugadorMesa($jugadorMesa, $comparison = null)
 {
     if ($jugadorMesa instanceof JugadorMesa) {
         return $this->addUsingAlias(TurnoPeer::JUGADOR_MESA_ID, $jugadorMesa->getId(), $comparison);
     } elseif ($jugadorMesa instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TurnoPeer::JUGADOR_MESA_ID, $jugadorMesa->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByJugadorMesa() only accepts arguments of type JugadorMesa or PropelCollection');
     }
 }
コード例 #5
0
ファイル: BaseJugadorMesaPeer.php プロジェクト: kcornejo/usac
 /**
  * Adds an object to the instance pool.
  *
  * Propel keeps cached copies of objects in an instance pool when they are retrieved
  * from the database.  In some cases -- especially when you override doSelect*()
  * methods in your stub classes -- you may need to explicitly add objects
  * to the cache in order to ensure that the same objects are always returned by doSelect*()
  * and retrieveByPK*() calls.
  *
  * @param      JugadorMesa $obj A JugadorMesa object.
  * @param      string $key (optional) key to use for instance map (for performance boost if key was already calculated externally).
  */
 public static function addInstanceToPool($obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getId();
         }
         // if key === null
         JugadorMesaPeer::$instances[$key] = $obj;
     }
 }
コード例 #6
0
ファイル: BaseTurno.php プロジェクト: kcornejo/usac
 /**
  * Declares an association between this object and a JugadorMesa object.
  *
  * @param             JugadorMesa $v
  * @return Turno The current object (for fluent API support)
  * @throws PropelException
  */
 public function setJugadorMesa(JugadorMesa $v = null)
 {
     if ($v === null) {
         $this->setJugadorMesaId(NULL);
     } else {
         $this->setJugadorMesaId($v->getId());
     }
     $this->aJugadorMesa = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the JugadorMesa object, it will not be re-added.
     if ($v !== null) {
         $v->addTurno($this);
     }
     return $this;
 }