cakephp - Looking up column in related model -



cakephp - Looking up column in related model -

i have 3 tables. here columns:

result : id, title prospect: id, result_id, customer_id customer: id, name, address

result hasmany prospect. prospect belongsto customer. customer hasmany prospect.

everything's ok. if view result, display fine along related model prospect. in related model, i'd display customer name instead of customer_id (by looking up). how that? , how paginate related model?

thank much!

add in prospect belongsto result , able info both directions.

if want more crazy things finding results based on client name might need read on following

linkable behavior bindmodel adhoc-joins

cakephp cakephp-1.3

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -