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

Verify that uuid is only mapped on referenceable documents #629

Merged
merged 1 commit into from May 1, 2015

Conversation

dbu
Copy link
Member

@dbu dbu commented Apr 10, 2015

jackalope started to verify that the uuid is not set on a non-referenceable node, leading to confusion when people map the uuid but do not make the document referenceable.

*/
public function validateReferenceable()
{
if ($this->uuidFieldName && !$this->referenceable && !'full' === $this->versionable) {
Copy link
Member Author

Choose a reason for hiding this comment

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

simple versionable does not imply referenceable. not sure if this check is too restrictive as custom mixins could extend referenceable as well - but worst case you just need to explicitly set referenceable to true in that case.

Copy link
Member

Choose a reason for hiding this comment

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

I think we normally use !==

@dbu dbu force-pushed the validate-uuid-referenceable branch from b9443a2 to 7002cdc Compare April 18, 2015 20:46
@dbu
Copy link
Member Author

dbu commented Apr 18, 2015

simplified the comparison statement.

lsmith77 added a commit that referenced this pull request May 1, 2015
Verify that uuid is only mapped on referenceable documents
@lsmith77 lsmith77 merged commit 392daae into master May 1, 2015
@lsmith77 lsmith77 deleted the validate-uuid-referenceable branch May 1, 2015 15:50
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.

None yet

2 participants