heyhey
I'm facing a very easy-looking problem, but I can't solve it.
In my application, a course has numerous meetings. So, I have the Meeting
(in the Meeting Controller) and try to get the ID of the belonging Course,
but the following returns NULL.
$this->Meeting->read();
$CourseID = $this->Meeting->Course->id;
In the meantime, I changed it to
$CourseID = $this->Meeting->field('course_id')
That works, but I'm very curious about, what's wrong with the other one.
Does anybody know?
Thank you in advance!
Rethab
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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en