Skip to content

Commit

Permalink
[Tools] renamed AS to as in EntityGenerator class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Hamon authored and beberlei committed Mar 24, 2012
1 parent 68806aa commit 505537d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/EntityGenerator.php
Expand Up @@ -430,7 +430,7 @@ private function _generateEntityConstructor(ClassMetadataInfo $metadata)

$collections = array();

foreach ($metadata->associationMappings AS $mapping) {
foreach ($metadata->associationMappings as $mapping) {
if ($mapping['type'] & ClassMetadataInfo::TO_MANY) {
$collections[] = '$this->'.$mapping['fieldName'].' = new \Doctrine\Common\Collections\ArrayCollection();';
}
Expand Down

0 comments on commit 505537d

Please sign in to comment.