Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/06/2011, 05:35
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Consulta Doctrine no funciona

Que tal agugut,

El segundo parámetro es el dato a bindear, en este caso no necesitas bindear nada, con algo así debería funcionar:

Código PHP:
Ver original
  1. $records = Doctrine_Query::create()
  2.          ->select('i.*')
  3.          ->from('Ingrediente i')
  4.          ->where('i.stockIngrediente <= i.stockMinimo')
  5.          ->execute();

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)