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

fix lazy loader setSerializeNull #211

Merged
merged 2 commits into from
Nov 1, 2012
Merged

fix lazy loader setSerializeNull #211

merged 2 commits into from
Nov 1, 2012

Conversation

hashnz
Copy link
Contributor

@hashnz hashnz commented Oct 28, 2012

Fix for #207

@@ -54,8 +54,8 @@ public function __construct(MetadataFactoryInterface $factory, HandlerRegistryIn

public function setSerializeNull($serializeNull)
{
foreach ($this->serializationVisitors as $visitor) {
$visitor->setSerializeNull($serializeNull);
foreach (array_keys($this->serializationVisitors) as $format) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this to the serialize method? Then, we avoid instantiating visitors that are not needed.

schmittjoh added a commit that referenced this pull request Nov 1, 2012
fix lazy loader setSerializeNull
@schmittjoh schmittjoh merged commit d066772 into schmittjoh:master Nov 1, 2012
@schmittjoh
Copy link
Owner

Thanks.

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.

2 participants