Hi, I'm new to CakePHP. I'm working on a project using it and so far I love it, but I have a question.
I have created my database, and the tables, filled in some sample data, and used cake bake all for each of my tables. Everything worked great, my table relationships were all configured correctly because I followed the Cake naming conventions. There are Submissions, that belong to a Job. (a submission has a job_id) In my submissions controller, I want to retrieve the job_id. Here is the code: $temp = $this->Submission->Job->id; //this does not work $temp = $this->Submission->Job; // this however DOES return the Job object??? (i think) $temp = $this->Submission->id; // this does return the Submission ID $temp = $this->Submission->job_id; //this does not work though... These were tried in the function: function delete($id = null) { } Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en