Hi,

I've created a observable model, which saves the userid when creating
and updating a model. So my Model might have fields created_by and
modified_by and in that case, my observable model, via a component (as
described on the Bakery) add this information to the data to be saved.

I would also like te be able to dynamically bind the models to the
User-model, so I can see the User how's has created and/or updated the
model. Therefor in my component, in the startup-method I have done
this: http://bin.cakephp.org/view/1010791772

Note that adding the extra information to every model works perfectly.
My only problem is with the bindings in startup.

It seems that I cannot change the name of the relationsships in
respectively Foo or Bar, this code gives an errormessage saying model
Foo or model Bar is not found. In my model, I AM able to give
associations another name though.

Changing back Foo and Bar to User makes the second bindModel overwrite
the first. In fact; when I do only one of these two bindModel
statements, read() doesn't even show any User information. When I put
them both in my code, it does..?

I must be doing something wrong, but cannot see what this is. Has
anyone an idea?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to