What happens if when the edit form first shows you unassociate all
pieces, what happens the next time you load the edit form?  I suspect
the way you've done it you will get no pieces again.

As mentioned earlier you should be using:
$this->Article->Piece->find('all'); or $this->Article->Piece-
>find('list'); if populating an array to then be used as options in a
form.

HTH, Paul

On Nov 9, 9:11 am, WebbedIT <[email protected]> wrote:
> So by default you are associating all Articles to Pieces?  I really
> suspect you're going about things in the wrong way here.
>
> Paul.
>
> On Nov 8, 10:04 am, Ernesto <[email protected]> wrote:
>
>
>
>
>
>
>
> > Thanks for the effort, i solved this way:
>
> > - in both articles/add and pieces/add users can enter just code and
> > description, no related model data
> > - after a successfull add() both Article and Piece models add every
> > possible combination between them and the other model. The app then
> > redirects diretcly to the "edit" action
> > - in both edit actions there's a simple hasMany form where the users can
> > modify the ArticlePieces data.

-- 
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