/** * 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 Especialidad Propel object for root node */ public static function retrieveRoot($scope = null, PropelPDO $con = null) { $c = new Criteria(EspecialidadPeer::DATABASE_NAME); $c->add(EspecialidadPeer::LEFT_COL, 1, Criteria::EQUAL); $c->add(EspecialidadPeer::SCOPE_COL, $scope, Criteria::EQUAL); return EspecialidadPeer::doSelectOne($c, $con); }