Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/02/2011, 02:54
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: no puedo hacer un consulta DQL usuando multiples variables.

Con DQL debería ser algo así:

Código PHP:
Ver original
  1. $q = Doctrine_Query::create()
  2.             ->select($select)
  3.             ->from($from)
  4.             ->where('? LIKE ?', array($camp1, '%' . $incognita . '%'))
  5.             ->orWhere('? LIKE ?', array($camp2, '%' . $incognita . '%'))
  6.             ->orWhere('? LIKE ?', array($camp3, '%' . $incognita . '%'));

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