Ticket #1080 (closed defect: fixed)

Opened 14 months ago

Last modified 13 months ago

owningSide not supported in yml

Reported by: jfung Owned by: jwage
Priority: minor Milestone: 0.11.0
Component: Schema Files Version: 0.11.0
Severity: Keywords:
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

When adding the attribute 'owningSide' into a schema yml file, Doctrine-build-models errors with:

[Doctrine_Import_Exception]

Invalid schema element named "owningSide"

Change History

Changed 13 months ago by jwage

  • milestone changed from 0.11.3 to 0.11.0

Changed 13 months ago by jwage

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

(In [4475]) fixes #1080

Changed 13 months ago by jfung

  • status changed from closed to reopened
  • mystatus set to Pending Core Response
  • has_patch unset
  • resolution fixed deleted
  • has_test unset

Follow up to this defect, even though the attribute 'owningSide' is now supported in the schema yml file, doctrine does not generate the attribute in the Record class.

    $this->hasOne('User', array('local' => 'user_id',
                                'foreign' => 'id',
                                'owningSide' => true, //DOCTRINE DOES NOT GENERATE THIS LINE EVEN THOUGH ITS SPECIFIED IN THE SCHEMA FILE
                                'onDelete' => 'CASCADE'));

Changed 13 months ago by jwage

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

(In [4507]) fixes #1080 again :)

Note: See TracTickets for help on using tickets.