#1553: huge bug in one 2 many relations
-----------------------------------+----------------------------------------
Reporter: tester | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: Unknown
Component: Attributes | Version: 1.0.2
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
hey
i got a huge bug in one 2 many relation
here is the schema
Serie:
options:
type: MYISAM
columns:
brand_id: integer(8)
name: string(64)
deleted: boolean
creation_date: timestamp
relations:
Models:
class: Model
local: id
foreign: serie_id
Model:
options:
type: MYISAM
columns:
brand_id: integer(8)
serie_id: integer(8)
name: string(255)
deleted: boolean
creation_date: timestamp
relations:
Serie:
if i do this
$serie[0]->Models i always get 6 records even if i have no records in
table model and ofc those records are null
even if i have 2 records in the table model there will be 6 records in
collection when i execute the code, but those 2 records wont be in those 6
thx
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1553>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" 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.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---