Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #62 from starkj/referrers

minor fixes
  • Loading branch information...
commit bf0cee5a5ca9d018371152788deeeca5ca92df55 2 parents 45a7cf6 + 68e3691
David Buchmann dbu authored
3  lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataInfo.php
@@ -579,6 +579,9 @@ protected function validateAndCompleteAssociationMapping($mapping)
579 579 if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
580 580 $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
581 581 }
  582 + if (!is_bool($mapping['weak'])) {
  583 + throw new MappingException("The attribute 'weak' for the '" . $this->name . "' association has to be a boolean true or false.");
  584 + }
582 585 return $mapping;
583 586 }
584 587
1  lib/Doctrine/ODM/PHPCR/UnitOfWork.php
@@ -877,6 +877,7 @@ public function flush($persist_to_backend = true)
877 877
878 878 if ($class->associationsMappings[$fieldName]['type'] === $class::MANY_TO_MANY) {
879 879 if (isset($fieldValue)) {
  880 + $refNodesIds = array();
880 881 foreach ($fieldValue as $fv ) {
881 882 if ($fv === null) {
882 883 continue;

0 comments on commit bf0cee5

Please sign in to comment.
Something went wrong with that request. Please try again.