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

DDC-3259: Second level & UnitOfWork inconsistencies #4048

Closed
doctrinebot opened this issue Aug 19, 2014 · 10 comments
Closed

DDC-3259: Second level & UnitOfWork inconsistencies #4048

doctrinebot opened this issue Aug 19, 2014 · 10 comments
Assignees

Comments

@doctrinebot
Copy link

Jira issue originally created by user goetas:

Hi!

I have a lot of entities with entity associations as keys and I'm trying to use second level cache.

Looking at the method: UnitOfWork::createEntity($className, array $data, &$hints = array())

  • $className: contains the class name
  • $data: contains the raw data (the row coming from the database)

Enabling the second level cache, DefaultQueryCache::get calls the createEntity method passing a $data that contains object entities and some raw data (https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Cache/DefaultQueryCache.php#L155).

I think that DefaultQueryCache should not introduce a variant of $data and should create a compatible version of $data.

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

[~goetas] do you have any example of where this may be happening?

@doctrinebot
Copy link
Author

Comment created by goetas:

#1114

This is the same branch of #1113, plus this commit (goetas@bfbbb91) that simply involves the second level cache too.
Travis should fail soon.

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1114] was closed:
#1114

@doctrinebot
Copy link
Author

Comment created by goetas:

Here the failure https://travis-ci.org/doctrine/doctrine2/jobs/32972996#L402

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1113] was assigned:
#1113

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1113] was closed:
#1113

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1113] was labeled:
#1113

1 similar comment
@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1113] was labeled:
#1113

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1113] was closed:
#1113

@lcobucci
Copy link
Member

Looks like it was fixed on #1113 (which was merged manually).

@lcobucci lcobucci assigned lcobucci and unassigned beberlei Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants