Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query for join some tables #5941

Closed
mrezagolestan opened this issue Feb 22, 2015 · 2 comments
Closed

query for join some tables #5941

mrezagolestan opened this issue Feb 22, 2015 · 2 comments
Labels

Comments

@mrezagolestan
Copy link

my tables structure:

estates (id)
estates_esspecvalues (estate_id,esspecvalue_id)
esspecvalues(id,esspecattribute_id,title)
esspecattributes(id,title)

i want to have a query for join this 4 table , i need output as an array to manipulate that.

output array should have

estates.id , esspecvalues.title , esspecattributes.(id , title)

when im using find and contain esspecvalues its done because my estates table have association with esspecvalues but i can`t contain esspecattributes

@AD7six
Copy link
Member

AD7six commented Feb 22, 2015

This is not a help forum. The ticket tracker is reserved for possible
bugs and feature enhancements to the CakePHP framework. If you are
looking for help on how to implement a feature or to better understand
how to use the framework correctly, please visit one of the following:

The CakePHP Manual
The CakePHP online API
The CakePHP Google Group
Stackoverflow

or the #cakephp channel on irc.freenode.net, where we will be more than
happy to help answer your questions.

Thanks!

@AD7six AD7six closed this as completed Feb 22, 2015
@AD7six AD7six added the support label Feb 22, 2015
@markstory
Copy link
Member

I would first figure out how to write the sql you need. After that you can use the querybuilder to replicate that sql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants