Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/02/2011, 08:03
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: añadir columna mediante propel en symfony

Que tal jluishg,

Según la documentación debería ser algo así:
Código PHP:
Ver original
  1. // fetch the title and author of each
  2. book$stmt = BookQuery::create()
  3.           ->addSelectColumn(BookPeer::TITLE)  ->joinAuthor()
  4.           ->addSelectColumn(AuthorPeer::FIRST_NAME)
  5.           ->addSelectColumn(AuthorPeer::LAST_NAME)
  6.           ->setFormatter(ModelCriteria::FORMAT_STATEMENT)
  7.           ->orderByTitle()  
  8.           ->find();

si bien puede que no sea la misma versión que estas utilizando, no debería variar mucho.

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