/** * Retrieve a single object by pkey. * * @param int $pk the primary key. * @param PropelPDO $con the connection to use * @return Usuario */ public static function retrieveByPK($pk, PropelPDO $con = null) { if (null !== ($obj = UsuarioPeer::getInstanceFromPool((string) $pk))) { return $obj; } if ($con === null) { $con = Propel::getConnection(UsuarioPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $criteria = new Criteria(UsuarioPeer::DATABASE_NAME); $criteria->add(UsuarioPeer::ID, $pk); $v = UsuarioPeer::doSelect($criteria, $con); return !empty($v) > 0 ? $v[0] : null; }
/** * Selects a collection of Empresa objects pre-filled with all related objects except Taula1. * * @param Criteria $c * @param PropelPDO $con * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @return array Array of Empresa objects. * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectJoinAllExceptTaula1(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $c = clone $c; // Set the correct dbName if it has not been overridden // $c->getDbName() will return the same object if not set to another value // so == check is okay and faster if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } EmpresaPeer::addSelectColumns($c); $startcol2 = EmpresaPeer::NUM_COLUMNS - EmpresaPeer::NUM_LAZY_LOAD_COLUMNS; ProvinciaPeer::addSelectColumns($c); $startcol3 = $startcol2 + (ProvinciaPeer::NUM_COLUMNS - ProvinciaPeer::NUM_LAZY_LOAD_COLUMNS); UsuarioPeer::addSelectColumns($c); $startcol4 = $startcol3 + (UsuarioPeer::NUM_COLUMNS - UsuarioPeer::NUM_LAZY_LOAD_COLUMNS); $c->addJoin(array(EmpresaPeer::ID_PROVINCIA), array(ProvinciaPeer::ID_PROVINCIA), $join_behavior); $c->addJoin(array(EmpresaPeer::ID_USUARIO), array(UsuarioPeer::ID_USUARIO), $join_behavior); $stmt = BasePeer::doSelect($c, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = EmpresaPeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = EmpresaPeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://propel.phpdb.org/trac/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $omClass = EmpresaPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj1 = new $cls(); $obj1->hydrate($row); EmpresaPeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined Provincia rows $key2 = ProvinciaPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = ProvinciaPeer::getInstanceFromPool($key2); if (!$obj2) { $omClass = ProvinciaPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); ProvinciaPeer::addInstanceToPool($obj2, $key2); } // if $obj2 already loaded // Add the $obj1 (Empresa) to the collection in $obj2 (Provincia) $obj2->addEmpresa($obj1); } // if joined row is not null // Add objects for joined Usuario rows $key3 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol3); if ($key3 !== null) { $obj3 = UsuarioPeer::getInstanceFromPool($key3); if (!$obj3) { $omClass = UsuarioPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj3 = new $cls(); $obj3->hydrate($row, $startcol3); UsuarioPeer::addInstanceToPool($obj3, $key3); } // if $obj3 already loaded // Add the $obj1 (Empresa) to the collection in $obj3 (Usuario) $obj3->addEmpresa($obj1); } // if joined row is not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
/** * Selects a collection of Mensaje objects pre-filled with all related objects. * * @param Criteria $criteria * @param PropelPDO $con * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @return array Array of Mensaje objects. * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $criteria = clone $criteria; // Set the correct dbName if it has not been overridden if ($criteria->getDbName() == Propel::getDefaultDB()) { $criteria->setDbName(self::DATABASE_NAME); } MensajePeer::addSelectColumns($criteria); $startcol2 = MensajePeer::NUM_HYDRATE_COLUMNS; UsuarioPeer::addSelectColumns($criteria); $startcol3 = $startcol2 + UsuarioPeer::NUM_HYDRATE_COLUMNS; UsuarioPeer::addSelectColumns($criteria); $startcol4 = $startcol3 + UsuarioPeer::NUM_HYDRATE_COLUMNS; $criteria->addJoin(MensajePeer::ID_USUARIO_DESTINATARIO, UsuarioPeer::ID, $join_behavior); $criteria->addJoin(MensajePeer::ID_USUARIO_REMITENTE, UsuarioPeer::ID, $join_behavior); $stmt = BasePeer::doSelect($criteria, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = MensajePeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = MensajePeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $cls = MensajePeer::getOMClass(); $obj1 = new $cls(); $obj1->hydrate($row); MensajePeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined Usuario rows $key2 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = UsuarioPeer::getInstanceFromPool($key2); if (!$obj2) { $cls = UsuarioPeer::getOMClass(); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); UsuarioPeer::addInstanceToPool($obj2, $key2); } // if obj2 loaded // Add the $obj1 (Mensaje) to the collection in $obj2 (Usuario) $obj2->addMensajeRelatedById_usuario_destinatario($obj1); } // if joined row not null // Add objects for joined Usuario rows $key3 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol3); if ($key3 !== null) { $obj3 = UsuarioPeer::getInstanceFromPool($key3); if (!$obj3) { $cls = UsuarioPeer::getOMClass(); $obj3 = new $cls(); $obj3->hydrate($row, $startcol3); UsuarioPeer::addInstanceToPool($obj3, $key3); } // if obj3 loaded // Add the $obj1 (Mensaje) to the collection in $obj3 (Usuario) $obj3->addMensajeRelatedById_usuario_remitente($obj1); } // if joined row not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
/** * Selects a collection of Libro objects pre-filled with all related objects except Genero. * * @param Criteria $criteria * @param PropelPDO $con * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @return array Array of Libro objects. * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectJoinAllExceptGenero(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $criteria = clone $criteria; // Set the correct dbName if it has not been overridden // $criteria->getDbName() will return the same object if not set to another value // so == check is okay and faster if ($criteria->getDbName() == Propel::getDefaultDB()) { $criteria->setDbName(self::DATABASE_NAME); } LibroPeer::addSelectColumns($criteria); $startcol2 = LibroPeer::NUM_HYDRATE_COLUMNS; UsuarioPeer::addSelectColumns($criteria); $startcol3 = $startcol2 + UsuarioPeer::NUM_HYDRATE_COLUMNS; PrivacidadPeer::addSelectColumns($criteria); $startcol4 = $startcol3 + PrivacidadPeer::NUM_HYDRATE_COLUMNS; UsuarioPeer::addSelectColumns($criteria); $startcol5 = $startcol4 + UsuarioPeer::NUM_HYDRATE_COLUMNS; $criteria->addJoin(LibroPeer::USUARIO_ULT_ACC, UsuarioPeer::ID, $join_behavior); $criteria->addJoin(LibroPeer::ID_PRIVACIDAD, PrivacidadPeer::ID, $join_behavior); $criteria->addJoin(LibroPeer::ID_USUARIO, UsuarioPeer::ID, $join_behavior); $stmt = BasePeer::doSelect($criteria, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = LibroPeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = LibroPeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $cls = LibroPeer::getOMClass(); $obj1 = new $cls(); $obj1->hydrate($row); LibroPeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined Usuario rows $key2 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = UsuarioPeer::getInstanceFromPool($key2); if (!$obj2) { $cls = UsuarioPeer::getOMClass(); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); UsuarioPeer::addInstanceToPool($obj2, $key2); } // if $obj2 already loaded // Add the $obj1 (Libro) to the collection in $obj2 (Usuario) $obj2->addLibroRelatedByUsuario_ult_acc($obj1); } // if joined row is not null // Add objects for joined Privacidad rows $key3 = PrivacidadPeer::getPrimaryKeyHashFromRow($row, $startcol3); if ($key3 !== null) { $obj3 = PrivacidadPeer::getInstanceFromPool($key3); if (!$obj3) { $cls = PrivacidadPeer::getOMClass(); $obj3 = new $cls(); $obj3->hydrate($row, $startcol3); PrivacidadPeer::addInstanceToPool($obj3, $key3); } // if $obj3 already loaded // Add the $obj1 (Libro) to the collection in $obj3 (Privacidad) $obj3->addLibro($obj1); } // if joined row is not null // Add objects for joined Usuario rows $key4 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol4); if ($key4 !== null) { $obj4 = UsuarioPeer::getInstanceFromPool($key4); if (!$obj4) { $cls = UsuarioPeer::getOMClass(); $obj4 = new $cls(); $obj4->hydrate($row, $startcol4); UsuarioPeer::addInstanceToPool($obj4, $key4); } // if $obj4 already loaded // Add the $obj1 (Libro) to the collection in $obj4 (Usuario) $obj4->addLibroRelatedById_usuario($obj1); } // if joined row is not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
/** * Selects a collection of Mensaje objects pre-filled with all related objects. * * @param Criteria $c * @param PropelPDO $con * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @return array Array of Mensaje objects. * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectJoinAll(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN) { foreach (sfMixer::getCallables('BaseMensajePeer:doSelectJoinAll:doSelectJoinAll') as $callable) { call_user_func($callable, 'BaseMensajePeer', $c, $con); } $c = clone $c; // Set the correct dbName if it has not been overridden if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } MensajePeer::addSelectColumns($c); $startcol2 = MensajePeer::NUM_COLUMNS - MensajePeer::NUM_LAZY_LOAD_COLUMNS; UsuarioPeer::addSelectColumns($c); $startcol3 = $startcol2 + (UsuarioPeer::NUM_COLUMNS - UsuarioPeer::NUM_LAZY_LOAD_COLUMNS); $c->addJoin(array(MensajePeer::ID_USUARIO), array(UsuarioPeer::ID_USUARIO), $join_behavior); $stmt = BasePeer::doSelect($c, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = MensajePeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = MensajePeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://propel.phpdb.org/trac/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $omClass = MensajePeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj1 = new $cls(); $obj1->hydrate($row); MensajePeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined Usuario rows $key2 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = UsuarioPeer::getInstanceFromPool($key2); if (!$obj2) { $omClass = UsuarioPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); UsuarioPeer::addInstanceToPool($obj2, $key2); } // if obj2 loaded // Add the $obj1 (Mensaje) to the collection in $obj2 (Usuario) $obj2->addMensaje($obj1); } // if joined row not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
/** * Find object by primary key. * Propel uses the instance pool to skip the database if the object exists. * Go fast if the query is untouched. * * <code> * $obj = $c->findPk(12, $con); * </code> * * @param mixed $key Primary key to use for the query * @param PropelPDO $con an optional connection object * * @return Usuario|Usuario[]|mixed the result, formatted by the current formatter */ public function findPk($key, $con = null) { if ($key === null) { return null; } if (null !== ($obj = UsuarioPeer::getInstanceFromPool((string) $key)) && !$this->formatter) { // the object is alredy in the instance pool return $obj; } if ($con === null) { $con = Propel::getConnection(UsuarioPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $this->basePreSelect($con); if ($this->formatter || $this->modelAlias || $this->with || $this->select || $this->selectColumns || $this->asColumns || $this->selectModifiers || $this->map || $this->having || $this->joins) { return $this->findPkComplex($key, $con); } else { return $this->findPkSimple($key, $con); } }
public static function doSelectJoinAllExceptPermiso(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } RelUsuarioPermisoPeer::addSelectColumns($c); $startcol2 = RelUsuarioPermisoPeer::NUM_COLUMNS - RelUsuarioPermisoPeer::NUM_LAZY_LOAD_COLUMNS; UsuarioPeer::addSelectColumns($c); $startcol3 = $startcol2 + (UsuarioPeer::NUM_COLUMNS - UsuarioPeer::NUM_LAZY_LOAD_COLUMNS); $c->addJoin(array(RelUsuarioPermisoPeer::FK_USUARIO_ID), array(UsuarioPeer::ID), $join_behavior); $stmt = BasePeer::doSelect($c, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = RelUsuarioPermisoPeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = RelUsuarioPermisoPeer::getInstanceFromPool($key1))) { } else { $omClass = RelUsuarioPermisoPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj1 = new $cls(); $obj1->hydrate($row); RelUsuarioPermisoPeer::addInstanceToPool($obj1, $key1); } $key2 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = UsuarioPeer::getInstanceFromPool($key2); if (!$obj2) { $omClass = UsuarioPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); UsuarioPeer::addInstanceToPool($obj2, $key2); } $obj2->addRelUsuarioPermiso($obj1); } $results[] = $obj1; } $stmt->closeCursor(); return $results; }
/** * Selects a collection of PedidoProveedor objects pre-filled with all related objects except Proveedor. * * @param Criteria $criteria * @param PropelPDO $con * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @return array Array of PedidoProveedor objects. * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectJoinAllExceptProveedor(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $criteria = clone $criteria; // Set the correct dbName if it has not been overridden // $criteria->getDbName() will return the same object if not set to another value // so == check is okay and faster if ($criteria->getDbName() == Propel::getDefaultDB()) { $criteria->setDbName(PedidoProveedorPeer::DATABASE_NAME); } PedidoProveedorPeer::addSelectColumns($criteria); $startcol2 = PedidoProveedorPeer::NUM_HYDRATE_COLUMNS; UsuarioPeer::addSelectColumns($criteria); $startcol3 = $startcol2 + UsuarioPeer::NUM_HYDRATE_COLUMNS; $criteria->addJoin(PedidoProveedorPeer::USUARIO_ID, UsuarioPeer::ID, $join_behavior); // symfony_behaviors behavior foreach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook) { call_user_func($sf_hook, 'BasePedidoProveedorPeer', $criteria, $con); } $stmt = BasePeer::doSelect($criteria, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = PedidoProveedorPeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = PedidoProveedorPeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $cls = PedidoProveedorPeer::getOMClass(); $obj1 = new $cls(); $obj1->hydrate($row); PedidoProveedorPeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined Usuario rows $key2 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = UsuarioPeer::getInstanceFromPool($key2); if (!$obj2) { $cls = UsuarioPeer::getOMClass(); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); UsuarioPeer::addInstanceToPool($obj2, $key2); } // if $obj2 already loaded // Add the $obj1 (PedidoProveedor) to the collection in $obj2 (Usuario) $obj2->addPedidoProveedor($obj1); } // if joined row is not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
/** * Selects a collection of Tarea objects pre-filled with all related objects except Empresa. * * @param Criteria $c * @param PropelPDO $con * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @return array Array of Tarea objects. * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectJoinAllExceptEmpresa(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $c = clone $c; // Set the correct dbName if it has not been overridden // $c->getDbName() will return the same object if not set to another value // so == check is okay and faster if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } TareaPeer::addSelectColumns($c); $startcol2 = TareaPeer::NUM_COLUMNS - TareaPeer::NUM_LAZY_LOAD_COLUMNS; FormularioPeer::addSelectColumns($c); $startcol3 = $startcol2 + (FormularioPeer::NUM_COLUMNS - FormularioPeer::NUM_LAZY_LOAD_COLUMNS); CampoPeer::addSelectColumns($c); $startcol4 = $startcol3 + (CampoPeer::NUM_COLUMNS - CampoPeer::NUM_LAZY_LOAD_COLUMNS); UsuarioPeer::addSelectColumns($c); $startcol5 = $startcol4 + (UsuarioPeer::NUM_COLUMNS - UsuarioPeer::NUM_LAZY_LOAD_COLUMNS); ParametroPeer::addSelectColumns($c); $startcol6 = $startcol5 + (ParametroPeer::NUM_COLUMNS - ParametroPeer::NUM_LAZY_LOAD_COLUMNS); $c->addJoin(array(TareaPeer::ID_FORMULARIO), array(FormularioPeer::ID_FORMULARIO), $join_behavior); $c->addJoin(array(TareaPeer::ID_CAMPO), array(CampoPeer::ID_CAMPO), $join_behavior); $c->addJoin(array(TareaPeer::ID_USUARIO), array(UsuarioPeer::ID_USUARIO), $join_behavior); $c->addJoin(array(TareaPeer::ID_ESTADO_TAREA), array(ParametroPeer::ID_PARAMETRO), $join_behavior); $stmt = BasePeer::doSelect($c, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = TareaPeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = TareaPeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://propel.phpdb.org/trac/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $omClass = TareaPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj1 = new $cls(); $obj1->hydrate($row); TareaPeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined Formulario rows $key2 = FormularioPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = FormularioPeer::getInstanceFromPool($key2); if (!$obj2) { $omClass = FormularioPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); FormularioPeer::addInstanceToPool($obj2, $key2); } // if $obj2 already loaded // Add the $obj1 (Tarea) to the collection in $obj2 (Formulario) $obj2->addTarea($obj1); } // if joined row is not null // Add objects for joined Campo rows $key3 = CampoPeer::getPrimaryKeyHashFromRow($row, $startcol3); if ($key3 !== null) { $obj3 = CampoPeer::getInstanceFromPool($key3); if (!$obj3) { $omClass = CampoPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj3 = new $cls(); $obj3->hydrate($row, $startcol3); CampoPeer::addInstanceToPool($obj3, $key3); } // if $obj3 already loaded // Add the $obj1 (Tarea) to the collection in $obj3 (Campo) $obj3->addTarea($obj1); } // if joined row is not null // Add objects for joined Usuario rows $key4 = UsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol4); if ($key4 !== null) { $obj4 = UsuarioPeer::getInstanceFromPool($key4); if (!$obj4) { $omClass = UsuarioPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj4 = new $cls(); $obj4->hydrate($row, $startcol4); UsuarioPeer::addInstanceToPool($obj4, $key4); } // if $obj4 already loaded // Add the $obj1 (Tarea) to the collection in $obj4 (Usuario) $obj4->addTarea($obj1); } // if joined row is not null // Add objects for joined Parametro rows $key5 = ParametroPeer::getPrimaryKeyHashFromRow($row, $startcol5); if ($key5 !== null) { $obj5 = ParametroPeer::getInstanceFromPool($key5); if (!$obj5) { $omClass = ParametroPeer::getOMClass(); $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1); $obj5 = new $cls(); $obj5->hydrate($row, $startcol5); ParametroPeer::addInstanceToPool($obj5, $key5); } // if $obj5 already loaded // Add the $obj1 (Tarea) to the collection in $obj5 (Parametro) $obj5->addTarea($obj1); } // if joined row is not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }