Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DDC-2166] Refactor identity hash generation#522

Closed
beberlei wants to merge 1 commit into
masterfrom
DDC-2166
Closed

[DDC-2166] Refactor identity hash generation#522
beberlei wants to merge 1 commit into
masterfrom
DDC-2166

Conversation

@beberlei
Copy link
Copy Markdown
Member

This work prepares for the merge of GH-232, allowing more complex and robust identifier hash generation.

@doctrinebot
Copy link
Copy Markdown

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2167

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Identifiers are always arrays as of class metadata. We shouldn't introduce more inconsistencies on that one (already a mess in the various ODMs, where that interface is currently ignored).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

$id is a scalar when people call $entityManager->find("Entity", 1); Thats why the method is about normalizing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@beberlei yeah, but then we're adding this call everywhere (instead of just where the API states @param mixed $id). Nvm, guess it's an acceptable overhead.

@TomasVotruba
Copy link
Copy Markdown
Contributor

This is almost 2 years old. Still relevant @beberlei ?

If so, it would be great to merge the change. As the time goes by, potential merge conflict will grow.

@goetas
Copy link
Copy Markdown
Member

goetas commented Aug 22, 2014

@Ocramius
Copy link
Copy Markdown
Member

@guilhermeblanco can you allocate some of @FabioBatSilva's time to check this and #1113 PR?

@Ocramius Ocramius self-assigned this Nov 11, 2014
@Ocramius
Copy link
Copy Markdown
Member

This has been partially handled in the IdentifierFlattener class now. Closing as incomplete.

@Ocramius Ocramius closed this Nov 11, 2014
@Ocramius Ocramius deleted the DDC-2166 branch November 11, 2014 15:14
@TomasVotruba
Copy link
Copy Markdown
Contributor

@Ocramius 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.

6 participants