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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -