Hello symfoniers,
I can't find how to do something no crazy, easy. If somebody did it sure
it's easy.
I have the following model, and i want to show a page with the form Importes
to set data. As you can see in the model, Importes it's related with
Impuestos ("Taxs" in english) and when i do <?php echo
$Importe['impuesto_id']->renderRow() ?> to render de row it generate a
selectable box with all the id of the Impuestos Class, but what i need to
show it's also the Nombre data and the id ussing the format "[impuesto->id]
impuesto->Nombre".

Anyone knows how to do it, or where to read to do it. what files touch.

Cheers!
Nicolas

START MODEL - START MODEL - START MODEL - START MODEL - START MODEL - START
MODEL -
Importes:
  actAs: { Timestampable: ~ }
  tableName: Importes
  columns:
    id:
      type: integer
      primary: true
      autoincrement: true
    factura_id:  integer
    impuesto_id: integer
    ValorNeto:   integer
    Porcentaje:  integer
  relations:
    FacturaCompra:  { local: factura_id, foreign: id,  foreignAlias:
FacturaCompra }
    Impuestos:
      class: Impuestos
      local: impuesto_id
      foreign: id
      type: one
# Arreglar relacion Importes <-> Impuestos
Impuestos:
   actAs: { Timestampable: ~ }
   tableName: Impuestos
   columns:
    id:
      type: integer
      primary: true
      autoincrement: true
#    Porcentaje:  integer
    Nombre: { type: string(30), notnull: true }

END MODEL - END MODEL - END MODEL - END MODEL - END MODEL - END MODEL - END
MODEL -
-- 
Nicolas G. Ardison
[email protected]

Antes de imprimir este mensaje, asegúrese de que es necesario. El medio
ambiente está en nuestras manos.
Before printing, think about the environment.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to