Ticket #749 (closed defect: fixed)

Opened 18 months ago

Last modified 16 months ago

Records selected into a collection not properly hydrated using column aggregation inheritance

Reported by: dbrewer Owned by: dbrewer
Priority: minor Milestone: 0.10.4
Component: Query/Hydration Version: 0.10.0
Severity: Keywords:
Cc: Has Test:
Status: Has Patch:

Description

There is a problem with column aggregation inheritance in Doctrine 0.9. The high level summary is that it is possible to make it work in general -- if class B is a subclass of class A, you can select from class A and get back objects of class B. However, those objects do not have the related objects of class B, and in fact an exception is thrown when you try to access those related objects.

I know, it seems fruitless to sink effort into this in this branch since the whole system has been changed in later versions, but since it 'kind of' works I thought it was worth at least filing a ticket and a test case for reproducing the issue. 0.9 will be in use for some time yet so I am willing to investigate this issue.

The test case should not probably be applied to trunk and possibly not to 0.10 branch as I think the way inheritance works changed between 0.9 and 0.10.

Change History

Changed 18 months ago by dbrewer

I added a test case for this ticket in r3629.

Changed 18 months ago by dbrewer

  • status changed from new to closed
  • resolution set to fixed

I believe I have fixed this specific issue in r3630 and r3631.

Changed 16 months ago by jwage

  • status changed from closed to reopened
  • version changed from 0.9 to 0.10
  • resolution fixed deleted
  • milestone set to 0.10.4

Changed 16 months ago by jwage

This is still broken in 0.10, and the Hydration has changed in 0.10, so the above were never merged from 0.10, and cannot be merged from 0.9. I have reopened this and will address for the 0.10.4 release. The tests have 2 new failing test cases related to this issue.

Changed 16 months ago by romanb

  • status changed from reopened to closed
  • resolution set to fixed

(In [4087]) Fixed #749.

Note: See TracTickets for help on using tickets.