Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated YmlDriver to support accessor config and fixed read_only "bug" #168

Closed
wants to merge 2 commits into from
Closed

Conversation

dylansmith
Copy link

Fixed an issue where setAccessor was called before $pMetadata->readOnly was
assigned, which meant that deserialization would require a public setter for a
readonly property (which may not exist, e.g. in generated Doctrine2 entities).

Also added support for the accessor_getter and accessor_setter config options
in YML, which are supported in the XmlDriver but not in YmlDriver.

…ly was

assigned, which meant that deserialization would require a public setter for a
readonly property (which may not exist, e.g. in generated Doctrine2 entities).

Also added support for the accessor_getter and accessor_setter config options
in YML, which are supported in the XmlDriver but not in YmlDriver.
@travisbot
Copy link

This pull request passes (merged db6597f into 1f308a5).

…ed by

#156

Example:

My\Bundle\Entity\Thing:
  properties:
    created_at:
      read_only: true
      type: DateTime
      accessor:
        getter: getCreatedAt
        setter: setCreatedAt
@travisbot
Copy link

This pull request passes (merged 17b51d8 into 1f308a5).

@schmittjoh
Copy link
Owner

This seems like a duplicate of #154?

@schmittjoh schmittjoh closed this Sep 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants