Hi guys,
Today I made my first attempt at using 2.x but I've gotten thoroughly
stuck at what seems to be a bug.
- I have three models: Ticket, Project, User. Ticket belongsTo Project
and User with no declared parameters.
- In the Tickets controller, I'm just doing a $this->Ticket-
>find('all').
- There is currently only one record in the tickets table.
This is what I get from the find():
Array
(
[0] => Array
(
[id] => 1
[creator_id] => 1
[project_id] => 1
[title] => Fix HTML
[description] => The HTML is broken.
[status] => for_moderation
[priority] => 4
[impact] => 0
[resolution] =>
[affected_files] =>
[branch_revision] =>
[created] => 2011-11-23 16:33:17
[modified] => 2011-11-23 16:33:17
[name] => Bit Santos
[active] => 1
[group_id] => 1
[soft_limit] => 1
[limit_active] => 20
[limit_releasing] => 0
[email] => [email protected]
)
)
So first of all, you'll see that the resulting fields aren't grouped
by model - name and email actually belong to User; active, group_id,
soft_limit, limit_active, limit_releasing belong to Project.
What's going on? All I've done so far is to create the controllers and
models via console, add index() actions, and create almost-blank view
templates. I've tried going through what I think are the relevant core
classes - Model, DboSource - but none of it is looking familiar to me.
Any help would be appreciated.
Thanks!
Regards,
Bit Santos
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php