Skip to content

Commit

Permalink
switch visibility of fields from private to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
dator committed Mar 30, 2011
1 parent ff49184 commit 26d3342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/MongoDB/Tools/DocumentGenerator.php
Expand Up @@ -659,7 +659,7 @@ private function generateDocumentAssociationMappingProperties(ClassMetadataInfo
}

$lines[] = $this->generateAssociationMappingPropertyDocBlock($fieldMapping, $metadata);
$lines[] = $this->spaces . 'private $' . $fieldMapping['fieldName']
$lines[] = $this->spaces . 'protected $' . $fieldMapping['fieldName']
. ($fieldMapping['type'] === ClassMetadataInfo::MANY ? ' = array()' : null) . ";\n";
}

Expand All @@ -680,7 +680,7 @@ private function generateDocumentFieldMappingProperties(ClassMetadataInfo $metad
}

$lines[] = $this->generateFieldMappingPropertyDocBlock($fieldMapping, $metadata);
$lines[] = $this->spaces . 'private $' . $fieldMapping['fieldName']
$lines[] = $this->spaces . 'protected $' . $fieldMapping['fieldName']
. (isset($fieldMapping['default']) ? ' = ' . var_export($fieldMapping['default'], true) : null) . ";\n";
}

Expand Down

0 comments on commit 26d3342

Please sign in to comment.