than try to do it manual
for ($i = 0; $i < count($arr); $i++)
{
$arr[$i]['MovimentacaoEquipamento']['yournewkey'] = 'newvalue'
}
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/27 Celso <[email protected]>
> I tried this: $result = Set::insert($movimentacoesEquipamentos, '{n}',
> array('movimentacao_id' => 45));
>
> but results in:
>
> Array
> (
> [0] => Array
> (
> [MovimentacaoEquipamento] => Array
> (
> [movimentar] => 1
> [equipamento_id] => 10
> )
>
> )
>
> [1] => Array
> (
> [MovimentacaoEquipamento] => Array
> (
> [movimentar] => 1
> [equipamento_id] => 13
> )
>
> )
>
> [{n}] => Array
> (
> [movimentacao_id] => 45
> )
>
> )
>
>
> On 27 maio, 17:09, Tilen Majerle <[email protected]> wrote:
> > check this
> >
> > http://book.cakephp.org/view/1489/insert
> >
> > --
> > Lep pozdrav, Tilen Majerlehttp://majerle.eu
> >
> > 2011/5/27 Celso <[email protected]>
> >
> >
> >
> >
> >
> >
> >
> > > In this array:
> >
> > > [MovimentacaoEquipamento] => Array
> > > (
> > > [0] => Array
> > > (
> > > [movimentar] => 1
> > > [equipamento_id] => 1
> > > )
> >
> > > [1] => Array
> > > (
> > > [movimentar] => 1
> > > [equipamento_id] => 2
> > > )
> > > )
> >
> > > I need put a [movimentacao_id] => 45 in each element of array, how do
> > > this with Set Class?
> > > Thanks
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
>
> --
> 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
>
--
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