Ejemplo n.º 1
0
 /**
  * Returns the root node for a given scope
  *
  * @param      int $scope		Scope to determine which root node to return
  * @param      PropelPDO $con	Connection to use.
  * @return     Causadiferido			Propel object for root node
  */
 public static function retrieveRoot($scope = null, PropelPDO $con = null)
 {
     $c = new Criteria(CausadiferidoPeer::DATABASE_NAME);
     $c->add(CausadiferidoPeer::LEFT_COL, 1, Criteria::EQUAL);
     $c->add(CausadiferidoPeer::SCOPE_COL, $scope, Criteria::EQUAL);
     return CausadiferidoPeer::doSelectOne($c, $con);
 }