#5587: Belongs_To & HABTM created inconsistently formatted array
--------------------------+-------------------------------------------------
Reporter: kmedlinnc | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: General
Version: RC3 | Severity: Normal
Keywords: | Php_version: n/a
Cake_version: |
--------------------------+-------------------------------------------------
Overview:
When you want to create an event with an owner and also allow other users
to sign-up for that event you'd have the following model structure:
User:
HABTM: Events
Has_Many: Events
Event:
HABTM: Users
Belongs_To: Users
In this way the user_id column in the Event table allows you to
demonstrate ownership while the join table called events_users allows you
to track attendance in the event.
The bug is that the $events['Users'] is not consistently formed.
The HABTM is in the array with numeric keys [0], [1] etc. The Belongs_To
record, however is in the array first with a key of [id] => rather than 0.
--
Ticket URL: <https://trac.cakephp.org/ticket/5587>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---