> Database looks like this:
>
> id
> user_id
> transaction_id
> order_id
> update
> created
> modified

Make it like this:

id
user_id
model varchar(255) # for model->name
foreign_key int(10) # for model.id
update
created # no need for 'modified' field

and then read this behavior (for CakePHP 2.x):

http://bin.cakephp.org/view/263142758

If you're using session and Auth component, you can initialize user_id
field this way:

http://bin.cakephp.org/view/720769503

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