Hi,
I try to display the list of the super-users in dropdown.
A read_data with in first group and the user model linked by foreign key user_id.
In group conditions
group.group_id/=:8
Return an array with key/value
But i don't no what, in debug no user appears.
[read_admins] => Array
(
[log] => Array
(
[0] => SELECT `user`.`id` AS `user.id`, `user`.`name` AS `user.name` FROM `xxx_user_usergroup_map` AS `group` LEFT JOIN `xxx_users` AS `user` ON `group`.`user_id` = `user`.`id` WHERE `group`.`group_id` = '8' LIMIT 100;
)
[var] => Array
(
)
)
In phpmyadmin the query shows exactly wath i want
user.id and user.name
what the trouble?
thanks
I try to display the list of the super-users in dropdown.
A read_data with in first group and the user model linked by foreign key user_id.
In group conditions
group.group_id/=:8
Return an array with key/value
But i don't no what, in debug no user appears.
[read_admins] => Array
(
[log] => Array
(
[0] => SELECT `user`.`id` AS `user.id`, `user`.`name` AS `user.name` FROM `xxx_user_usergroup_map` AS `group` LEFT JOIN `xxx_users` AS `user` ON `group`.`user_id` = `user`.`id` WHERE `group`.`group_id` = '8' LIMIT 100;
)
[var] => Array
(
)
)
In phpmyadmin the query shows exactly wath i want
user.id and user.name
what the trouble?
thanks