Hi!

I have a problem understanding "n-to-m" relations and how to integrate it 
in a view (inputform and showing content).

Following situation:

table zoos
  fields: id, name

table animals
  fields: id, name

table zootoanimalmappings
   fields: id, zoo_id, animal_id

Now i wan't top create a view where i can enter:

  Zooname
  All Animals that resists in that zoo

But i dont know how to do this in a view and what the controller have to do 
(i think it have to select/set all posible animals for the view...but how 
do i put it in the data-array for later saving?).

Thanks for your help!

Best regards,
  Kais.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to