Development

#4957 (The changeset #13029 makes doctrine admin generator breaks)

You must first sign up to be able to contribute.

Ticket #4957 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

The changeset #13029 makes doctrine admin generator breaks

Reported by: nervo Assigned to: fabien
Priority: major Milestone: 1.2.0 RC1
Component: routing Version: 1.2.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

As far as i can see, in getObjectsForParameters() method, a new check is made to verify if the method option ("findOneById" in doctrine most of the case) exist in the class (a record class in doctrine). But doctrine use magical "call()" method to make such methods available. This way, these methods are not detected by method_exists() php function, and the exception is thrown in all cases.

As a workaround, i systematically define the method by hand.

Change History

11/16/08 23:16:13 changed by fabien

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

(In [13046]) [1.2] reverted r13029 because Doctrine uses call() for some methods (closes #4957)