***Equipamento*** hasBelongToMany ***Recibo***

***EntradaEquipamento*** belongsTo ***Recibo***, ***Equipamento***

In the Equipamento/add view, i have various Equipamento.n.fields, and
for each Equipamento, i need save a EntradaEquipamento too

I tried this array in saveAll, but without success:


Array
(
    [EntradaEquipamento] => Array
        (
            [recibo_id] => 5
        )

    [Equipamento] => Array
        (
            [1] => Array
                (
                    [numero_serie] => al001
                    [codigo_controle] => c12
                    [tipo_equipamento_id] => 2
                    [localizacao_id] => 250
                    [status_equipamento_id] => 1
                    [user_id] => 1
                )

            [2] => Array
                (
                    [numero_serie] => al002
                    [codigo_controle] => c13
                    [tipo_equipamento_id] => 2
                    [localizacao_id] => 250
                    [status_equipamento_id] => 1
                    [user_id] => 1
                )

        )

)

How save all this ?

Thanks,
Celso.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to