Esempio n. 1
0
 /**
  * @param	Medicoespecialidad $medicoespecialidad The medicoespecialidad object to add.
  */
 protected function doAddMedicoespecialidad($medicoespecialidad)
 {
     $this->collMedicoespecialidads[] = $medicoespecialidad;
     $medicoespecialidad->setMedico($this);
 }
 /**
  * Exclude object from result
  *
  * @param   Medicoespecialidad $medicoespecialidad Object to remove from the list of results
  *
  * @return MedicoespecialidadQuery The current query, for fluid interface
  */
 public function prune($medicoespecialidad = null)
 {
     if ($medicoespecialidad) {
         $this->addUsingAlias(MedicoespecialidadPeer::IDMEDICOESPECIALIDAD, $medicoespecialidad->getIdmedicoespecialidad(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 3
0
 /**
  * Filter the query by a related Medicoespecialidad object
  *
  * @param   Medicoespecialidad|PropelObjectCollection $medicoespecialidad  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 MedicoQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByMedicoespecialidad($medicoespecialidad, $comparison = null)
 {
     if ($medicoespecialidad instanceof Medicoespecialidad) {
         return $this->addUsingAlias(MedicoPeer::IDMEDICO, $medicoespecialidad->getIdmedico(), $comparison);
     } elseif ($medicoespecialidad instanceof PropelObjectCollection) {
         return $this->useMedicoespecialidadQuery()->filterByPrimaryKeys($medicoespecialidad->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByMedicoespecialidad() only accepts arguments of type Medicoespecialidad or PropelCollection');
     }
 }
 /**
  * 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 Medicoespecialidad $obj A Medicoespecialidad 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->getIdmedicoespecialidad();
         }
         // if key === null
         MedicoespecialidadPeer::$instances[$key] = $obj;
     }
 }