-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Hi,
got:
ALTER TABLE `survey`
ADD CONSTRAINT `survey_ibfk_1` FOREIGN KEY (`status`) REFERENCES `survey_status_names` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Ograniczenia dla tabeli `survey_users`
--
ALTER TABLE `survey_users`
ADD CONSTRAINT `survey_users_ibfk_1` FOREIGN KEY (`survey_id`) REFERENCES `survey` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `survey_users_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `survey_users_ibfk_3` FOREIGN KEY (`survey_access_names_id`) REFERENCES `survey_access_names` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Ograniczenia dla tabeli `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `access_name` FOREIGN KEY (`access_level`) REFERENCES `access_names` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
COMMIT;
And i do:
/users?include=survey,survey_access_names,survey_status_names&exclude=password&filter=id,eq,'.$id.''
my callback is:
null
if i do:
/users?include=survey,survey_status_names&exclude=password&filter=id,eq,'.$id.''
that works,
and problem is that when i use survey_access_names i should get an array survey_access_names_id which got object with access_survey_names (string). I understand that the status is inside the survey table so that FK works properly, but why if i link with fk id from survey_access_names_id from survey_users that not contain linked table, like: survey_access_names as array of survey_access_names_id
this is the not supporten multi fk ? sry for my english, please help with this.