Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-488

Create documentation for PHP mapping driver.

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      The PHP mapping driver is currently not documented but should be.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        In that regard the question if we should change the PhpDriver not to include another file for the metadata loading, but call a static loadMetadata method on each entity that accepts the ClassMetadata instance.

        Show
        Benjamin Eberlei added a comment - In that regard the question if we should change the PhpDriver not to include another file for the metadata loading, but call a static loadMetadata method on each entity that accepts the ClassMetadata instance.
        Hide
        Jonathan H. Wage added a comment -

        I think we should allow both. Either offer a new driver type or add an option to PhpDriver?

        Show
        Jonathan H. Wage added a comment - I think we should allow both. Either offer a new driver type or add an option to PhpDriver?
        Hide
        Roman S. Borschel added a comment -

        I think an option on PHPDriver would be enough.

        Show
        Roman S. Borschel added a comment - I think an option on PHPDriver would be enough.
        Hide
        Benjamin Eberlei added a comment -

        What the PHP Driver currently not has compared to other drivers is validation. There should be some additional checks after the ClassMetadata was filled.

        Show
        Benjamin Eberlei added a comment - What the PHP Driver currently not has compared to other drivers is validation. There should be some additional checks after the ClassMetadata was filled.
        Hide
        Jonathan H. Wage added a comment -

        I added a StaticPHPDriver here http://github.com/jwage/doctrine2/commit/27a0058b89d5fc4b413f0b1a7542c57cec60e1c6

        We can't add a option to PHPDriver since it extends from AbstractFileDriver and requires something a little more custom.

        Show
        Jonathan H. Wage added a comment - I added a StaticPHPDriver here http://github.com/jwage/doctrine2/commit/27a0058b89d5fc4b413f0b1a7542c57cec60e1c6 We can't add a option to PHPDriver since it extends from AbstractFileDriver and requires something a little more custom.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Roman S. Borschel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: