public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = LegajoadjuntoPeer::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) { $this->setFkLegajopedagogicoId($arr[$keys[0]]); } if (array_key_exists($keys[1], $arr)) { $this->setFkAdjuntoId($arr[$keys[1]]); } if (array_key_exists($keys[2], $arr)) { $this->setId($arr[$keys[2]]); } }
public function getLegajoadjuntosJoinLegajopedagogico($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { if ($criteria === null) { $criteria = new Criteria(AdjuntoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collLegajoadjuntos === null) { if ($this->isNew()) { $this->collLegajoadjuntos = array(); } else { $criteria->add(LegajoadjuntoPeer::FK_ADJUNTO_ID, $this->id); $this->collLegajoadjuntos = LegajoadjuntoPeer::doSelectJoinLegajopedagogico($criteria, $con, $join_behavior); } } else { $criteria->add(LegajoadjuntoPeer::FK_ADJUNTO_ID, $this->id); if (!isset($this->lastLegajoadjuntoCriteria) || !$this->lastLegajoadjuntoCriteria->equals($criteria)) { $this->collLegajoadjuntos = LegajoadjuntoPeer::doSelectJoinLegajopedagogico($criteria, $con, $join_behavior); } } $this->lastLegajoadjuntoCriteria = $criteria; return $this->collLegajoadjuntos; }
public static function retrieveByPKs($pks, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(LegajoadjuntoPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(LegajoadjuntoPeer::DATABASE_NAME); $criteria->add(LegajoadjuntoPeer::ID, $pks, Criteria::IN); $objs = LegajoadjuntoPeer::doSelect($criteria, $con); } return $objs; }