$this->linea = Doctrine_Query::create() ->select('MAX(linea) AS linea') ->from('Tabla') ->execute();
Doctrine y select Max - 0 views
symfony framework forum: symfony 1.3 and 1.4 => is there anyone can tell me how to use ... - 0 views
-
in the form $this->widgetSchema['login_id'] = new sfWidgetFormJQueryAutocompleter(array( 'url' => '/ajax/getUser', )); and in the action of executeGetUser $this->getResponse()->setContentType('application/json'); $users=Doctrine::getTable('user')->getLoginIDList(); return $this->renderText(json_encode($users)); And in the userTable which inside Doctrine $q=Doctrine_Query::create()->select('login_id')->from('user')- >execute(); foreach($q as $row){ $login_id[$row->login_id]=$row->login_id; } return $login_id; hope this help =]
1 - 3 of 3
Showing 20▼ items per page