Re: hasMany problem !!

2011-04-25 Thread gremlin
You need to edit your view file. You can do a debug( $variableName ) on the data you are sending to the view. You will notice a different array structure for hasMany as compared to hasOne. On Apr 24, 9:34 am, taq taqman...@gmail.com wrote: databasehttp://upic.me/i/v4/database.jpg book

Re: hasMany problem !!

2011-04-24 Thread Jens Dittrich
if you expect help, then you shoul consider sharing more information about what you have done. On 24 Apr., 07:42, taq taqman...@gmail.com wrote: I set up a table and try to do hasmany Ee Long says can not find. But when put into the back hasone found it simple tight -- Our newest site for the

Re: hasMany problem !!

2011-04-24 Thread taq
database http://upic.me/i/v4/database.jpg book model http://upic.me/i/qp/modelbook.jpg book catagorie model http://upic.me/i/an/model.jpg view eror message http://upic.me/i/ov/xview.jpg i test hasOne and belongsTo between books and bookcats it's no eror but i test hasMany i got error in view

hasMany problem !!

2011-04-23 Thread taq
I set up a table and try to do hasmany Ee Long says can not find. But when put into the back hasone found it simple tight -- 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

hasMany Problem

2010-08-11 Thread JuMiFi
Hallo liebe Community, ich habe eine Frage bzgl. hasMany... Ich habe ein Model User (users), welches via hasOne u.a. auf Account (users_accounts) und File (users_files) zugreift. Ausserdem kann es via hasMany auf Friends (friends) zugreifen. users_files beinhaltet die Uploads eines Users

Re: hasMany Problem

2010-08-11 Thread Max Dörfler
Hi, ich bin mir nicht sicher, ob ich das alles richtig verstehe, kannst du vielleicht den Code deiner Models (den ganzen hasOne, hasMany, belongsTo Kram) schicken? Da du dich scheinbar auch nicht so richtig an die Namenskonventionen hältst, ist das übersichtlicher. :) Weil z.B. eine Friend

Re: hasMany problem (SOLVED)

2009-06-05 Thread Andreas Derksen
Ok, I did one mistake... Jointables need to be defined in alphabetical order... that confused the whole application. so after defining a modules_products table instead of the products_modules table i got all the data right... just in case anyone runs into the same problem. greets Andreas

hasMany problem

2009-06-04 Thread Andreas D.
Hello all together, i'm currently developing a checklist application. I got problems linking the models together right now.. I got one Checklist model which belongsTo a User, Language, OperatingSystem, Product. My User hasMany Checklist. Now I want to fetch all User related checklists through

Re: hasMany problem

2009-06-04 Thread tobi_one
I got one Checklist model which belongsTo a User, Language, OperatingSystem, Product. My User hasMany Checklist. Now I want to fetch all User related checklists through the UsersController. So when I do a $this-User-find('first', array ('conditions' = array('id' = $id))); I get only the