-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug: Join Query is not working in Library #3600
Comments
You're using Hint - it should be: ...
$res = $db->table('acl_roles_permissions');
$res->select(... |
Well I verified the query
But I'm unable to get the result, of joined queries. Btw the Hint you gave is the same as my code, Put the whole builder query in one statement. For my problem I tried another way I used
With this, I fixed my problem. But still, we can not get the result of the joined query using the code in my question. Please verify it once. |
Yes, you're right, but still, it's not a bug. Please try: if ($res->countAllResults(false) > 0) {
print_r($res->get()->getResultArray()); |
Again failed, its result is the same i.e without join queries data. |
Description
I think its a bug as well, using the query builder, the
join
query is not working! It gets only the table mention insidetable()
i.eacl_roles_permissions
, while in MySQL Manager I'm getting the result with join.Result of above code in the library
The same query runs inside MySQL manager.
CodeIgniter 4 version
4.0.4
Context
The text was updated successfully, but these errors were encountered: