-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Always expose virtual properties by default #145
Always expose virtual properties by default #145
Conversation
… to "all" by making them allways exposed by default.
There was another PR submitted for this (#144), but this one looks simpler. Could you add a small test to the base driver test? |
I'll do it right now (after I understand fully how it's tested.) Btw, I noticed that after doing
There are two tests that fail. Is this already known? |
Can you try "composer install --dev", maybe we also need to adjust the On Fri, Jul 6, 2012 at 11:10 AM, Roger Llopart Pla <
|
Already done that, the output of PHPUnit is the following:
I'm working on the tests, I've understood how the fixtures are done, so I'll be finished in a moment. |
I've managed to implement tests for Annotations YAML and XML, but I'm having issues with the PhpDriver, since it ain't docummented how it works. I'll commit what i have up to now, It'd be great if you could give me some hints on how to move on from here. |
Disgread what I said, I've found it out. |
@@ -0,0 +1,3 @@ | |||
JMS\SerializerBundle\Tests\Fixtures\ObjectWithVirtualPropertiesAndExcludeAll: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think exclusion_policy: ALL
is missing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, fixing it now.
Anything else needed, or can this PR be merged? |
…port Always expose virtual properties by default
No, looks good :) |
Added support for virtual properties when the exclusion policy is set to "all" by making them allways exposed by default.