06.03
php
saved
pr1001
Note
SQL query created by findAll():
SELECT `Serviceaccount`.`id`, `Serviceaccount`.`service_id`, `Serviceaccount`.`username`, `Serviceaccount`.`password`, `Serviceaccount`.`url`, `Serviceaccount`.`supportedmedia`, `Serviceaccount`.`posttypes`, `Serviceaccount`.`created`, `Serviceaccount`.`updated`, `Service`.`id`, `Service`.`name`, `Service`.`username`, `Service`.`password`, `Service`.`url`, `Service`.`supportedmedia`, `Service`.`posttypes`, `Service`.`created`, `Service`.`updated` FROM `serviceaccounts` AS `Serviceaccount` LEFT JOIN `services` AS `Service` ON (`Serviceaccount`.`service_id` = `Service`.`id`) WHERE ((`User`.`id` IS NULL) OR (`Group`.`id` IS NULL) OR (`Event`.`id` IS NULL))
SQL query created by findAll():
SELECT `Serviceaccount`.`id`, `Serviceaccount`.`service_id`, `Serviceaccount`.`username`, `Serviceaccount`.`password`, `Serviceaccount`.`url`, `Serviceaccount`.`supportedmedia`, `Serviceaccount`.`posttypes`, `Serviceaccount`.`created`, `Serviceaccount`.`updated`, `Service`.`id`, `Service`.`name`, `Service`.`username`, `Service`.`password`, `Service`.`url`, `Service`.`supportedmedia`, `Service`.`posttypes`, `Service`.`created`, `Service`.`updated` FROM `serviceaccounts` AS `Serviceaccount` LEFT JOIN `services` AS `Service` ON (`Serviceaccount`.`service_id` = `Service`.`id`) WHERE ((`User`.`id` IS NULL) OR (`Group`.`id` IS NULL) OR (`Event`.`id` IS NULL))
- <?php
- // Model Serviceaccount BelongsTo Service; HABTM Event, Group, User
- // app/controllers/messages_controller.php
- // get all appropriate serviceaccounts
- $serviceaccounts = $this->Serviceaccount->findAll($conditions, null, null, null, null, 2);
- // or
- $this->Serviceaccount->recursive = 2;
- $serviceaccounts = $this->Serviceaccount->findAll($conditions);
- ?>
Parsed in 0.026 seconds, using GeSHi 1.0.7.14