hansfn/odataphp

BaseType attribute in EntityType is ignored

Closed this issue · 0 comments

If the XML metadata defines an entity type as having a base type, the generated proxy file still says that the class extends object in stead of the base class (type). Simplified example from Mediasite:

XML excerpt:

<EntityType Name="PresentationFullRepresentation" BaseType="PresentationCardRepresentation">

Corresponding generated PHP code:

   /**
    * @class:PresentationFullRepresentation
    * @type:EntityType
    */
    class PresentationFullRepresentation extends Object

The class should of course extend PresentationCardRepresentation in stead of Object.

I'm working on a patch.