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 wrote:
> databasehttp://upic.me/i/v4/database.jpg
> book modelhttp://upic.me/i/qp/m
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 error
if you expect help, then you shoul consider sharing more information
about what you have done.
On 24 Apr., 07:42, taq 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 community: CakePH
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 the
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" R
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
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
And
> 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
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 th