Ticket #1420 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Column aggregation and I18n columns

Reported by: killian Owned by: romanb
Priority: major Milestone: 1.0.1
Component: Inheritance Version: 1.0.0
Severity: Keywords:
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

(A message have been posted here)

I've be confronted to an issue with column aggregation inheritance. There is my model :

A:
  actAs:
    I18n:
      fields: [name]
  columns:
    name: string(255)

Aa:
  inheritance:
    extends: A
    type: column_aggregation

Ab:
  inheritance:
    extends: A
    type: column_aggregation

When I get the 'name' field I18nable, Doctrine leaves in a terrible infinite loop, and PHP gives me this fatal error :

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 32 bytes) in /var/www/..../BaseA.php on line 15

This line is the following :

$this->setSubClasses(array('Aa' => array('type' => 'Aa'), 'Ab' => array('type' => 'Ab')));

When I get rid of the actAs I18n, all is going ok. Is there a Doctrine bug ?

Change History

Changed 10 months ago by jwage

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

(In [4894]) fixes #1420 Fixes segfault when combining column aggregation inheritance and I18n behavior

Note: See TracTickets for help on using tickets.