Skip to content

Commit a2cd0f5

Browse files
committed
Fixed typos
1 parent 399584d commit a2cd0f5

File tree

77 files changed

+188
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+188
-188
lines changed

UPGRADE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ from 2.0 have to configure the annotation driver if they don't use `Configuratio
126126
$config->setMetadataDriverImpl($driver);
127127

128128

129-
## Scalar mappings can now be ommitted from DQL result
129+
## Scalar mappings can now be omitted from DQL result
130130

131131
You are now allowed to mark scalar SELECT expressions as HIDDEN an they are not hydrated anymore.
132132
Example:
@@ -307,7 +307,7 @@ them for batch updates like SchemaTool and other commands. However the
307307
annotations driver being a default driver does not really help that much
308308
anyways.
309309

310-
Therefore we decided to break backwards compability in this issue and drop
310+
Therefore we decided to break backwards compatibility in this issue and drop
311311
the support for Annotations as Default Driver and require our users to
312312
specify the driver explicitly (which allows us to ask for the path to all
313313
entities).
@@ -366,7 +366,7 @@ apologize for the inconvenience.
366366
## Default Property for Field Mappings
367367

368368
The "default" option for database column defaults has been removed. If desired, database column defaults can
369-
be implemented by using the columnDefinition attribute of the @Column annotation (or the approriate XML and YAML equivalents).
369+
be implemented by using the columnDefinition attribute of the @Column annotation (or the appropriate XML and YAML equivalents).
370370
Prefer PHP default values, if possible.
371371

372372
## Selecting Partial Objects
@@ -451,7 +451,7 @@ With new required method AbstractTask::buildDocumentation, its implementation de
451451

452452
* "doctrine schema-tool --drop" now always drops the complete database instead of
453453
only those tables defined by the current database model. The previous method had
454-
problems when foreign keys of orphaned tables pointed to tables that were schedulded
454+
problems when foreign keys of orphaned tables pointed to tables that were scheduled
455455
for deletion.
456456
* Use "doctrine schema-tool --update" to get a save incremental update for your
457457
database schema without deleting any unused tables, sequences or foreign keys.

docs/en/cookbook/entities-in-session.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ object or implement the __sleep() magic method on your entity.
6464

6565
When you called detach on your objects they get "unmanaged" with that
6666
entity manager. This means you cannot use them as part of write operations
67-
during ``EntityManagr#flush()`` anymore in this request.
67+
during ``EntityManager#flush()`` anymore in this request.
6868

docs/en/reference/faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ is supposed to kick-start you, but not towards 100%.
162162
Why does the EntityGenerator not generate inheritance correctly?
163163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164164

165-
Just from the details of the discriminator map the EntityGenerator cannot guess the inheritance hierachy.
165+
Just from the details of the discriminator map the EntityGenerator cannot guess the inheritance hierarchy.
166166
This is why the generation of inherited entities does not fully work. You have to adjust some additional
167167
code to get this one working correctly.
168168

docs/en/reference/working-with-associations.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ interchangeably, independent of in-memory or sql-backed collections.
689689
*/
690690
public function setMaxResults($maxResults);
691691
public function getOrderings();
692-
public function getWhereExpresion();
692+
public function getWhereExpression();
693693
public function getFirstResult();
694694
public function getMaxResults();
695695
}

docs/en/tutorials/composite-primary-keys.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ the ID fields have to have their values set before you call ``EntityManager#pers
1919
Primitive Types only
2020
~~~~~~~~~~~~~~~~~~~~
2121

22-
Even in version 2.0 you can have composite keys as long as they only consist of the primative types
22+
Even in version 2.0 you can have composite keys as long as they only consist of the primitive types
2323
``integer`` and ``string``. Suppose you want to create a database of cars and use the model-name
2424
and year of production as primary keys:
2525

@@ -129,7 +129,7 @@ of one or many parent entities.
129129

130130
- Dynamic Attributes of an Entity (for example Article). Each Article has many
131131
attributes with primary key "article_id" and "attribute_name".
132-
- Address object of a Person, the primary key of the adress is "user_id". This is not a case of a composite primary
132+
- Address object of a Person, the primary key of the address is "user_id". This is not a case of a composite primary
133133
key, but the identity is derived through a foreign entity and a foreign key.
134134
- Join Tables with metadata can be modelled as Entity, for example connections between two articles
135135
with a little description and a score.

lib/Doctrine/ORM/AbstractQuery.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public function setResultCacheProfile(QueryCacheProfile $profile = null)
386386
}
387387

388388
/**
389-
* Defines a cache driver to be used for caching result sets and implictly enables caching.
389+
* Defines a cache driver to be used for caching result sets and implicitly enables caching.
390390
*
391391
* @param \Doctrine\Common\Cache\Cache|null $resultCacheDriver Cache driver
392392
*

lib/Doctrine/ORM/Events.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function __construct()
122122

123123
/**
124124
* The preFlush event occurs when the EntityManager#flush() operation is invoked,
125-
* but before any changes to managed entites have been calculated. This event is
125+
* but before any changes to managed entities have been calculated. This event is
126126
* always raised right after EntityManager#flush() call.
127127
*/
128128
const preFlush = 'preFlush';

lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function hydrateRow()
168168
}
169169

170170
/**
171-
* Excutes one-time preparation tasks, once each time hydration is started
171+
* Executes one-time preparation tasks, once each time hydration is started
172172
* through {@link hydrateAll} or {@link iterate()}.
173173
*
174174
* @return void
@@ -178,7 +178,7 @@ protected function prepare()
178178
}
179179

180180
/**
181-
* Excutes one-time cleanup tasks at the end of a hydration that was initiated
181+
* Executes one-time cleanup tasks at the end of a hydration that was initiated
182182
* through {@link hydrateAll} or {@link iterate()}.
183183
*
184184
* @return void
@@ -223,7 +223,7 @@ abstract protected function hydrateAllData();
223223
* Puts the elements of a result row into a new array, grouped by the dql alias
224224
* they belong to. The column names in the result set are mapped to their
225225
* field names during this procedure as well as any necessary conversions on
226-
* the values applied. Scalar values are kept in a specfic key 'scalars'.
226+
* the values applied. Scalar values are kept in a specific key 'scalars'.
227227
*
228228
* @param array $data SQL Result Row.
229229
* @param array &$cache Cache for column to field result information.
@@ -321,7 +321,7 @@ protected function gatherRowData(array $data, array &$cache, array &$id, array &
321321
}
322322

323323
// in an inheritance hierarchy the same field could be defined several times.
324-
// We overwrite this value so long we dont have a non-null value, that value we keep.
324+
// We overwrite this value so long we don't have a non-null value, that value we keep.
325325
// Per definition it cannot be that a field is defined several times and has several values.
326326
if (isset($rowData[$dqlAlias][$cache[$key]['fieldName']]) && $value === null) {
327327
continue;

lib/Doctrine/ORM/Internal/Hydration/HydrationException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function parentObjectOfRelationNotFound($alias, $parentAlias)
4949
public static function emptyDiscriminatorValue($dqlAlias)
5050
{
5151
return new self("The DQL alias '" . $dqlAlias . "' contains an entity ".
52-
"of an inheritance hierachy with an empty discriminator value. This means " .
52+
"of an inheritance hierarchy with an empty discriminator value. This means " .
5353
"that the database contains inconsistent data with an empty " .
5454
"discriminator value in a table row."
5555
);

lib/Doctrine/ORM/Mapping/Builder/AssociationBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function build()
200200
} else if ($this->type == ClassMetadata::ONE_TO_ONE) {
201201
$cm->mapOneToOne($mapping);
202202
} else {
203-
throw new \InvalidArgumentException("Type should be a ToOne Assocation here");
203+
throw new \InvalidArgumentException("Type should be a ToOne Association here");
204204
}
205205
return $this->builder;
206206
}

lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function addNamedQuery($name, $dqlQuery)
163163
}
164164

165165
/**
166-
* Sets class as root of a joined table inheritance hierachy.
166+
* Sets class as root of a joined table inheritance hierarchy.
167167
*
168168
* @return ClassMetadataBuilder
169169
*/
@@ -175,7 +175,7 @@ public function setJoinedTableInheritance()
175175
}
176176

177177
/**
178-
* Sets class as root of a single table inheritance hierachy.
178+
* Sets class as root of a single table inheritance hierarchy.
179179
*
180180
* @return ClassMetadataBuilder
181181
*/
@@ -207,7 +207,7 @@ public function setDiscriminatorColumn($name, $type = 'string', $length = 255)
207207
}
208208

209209
/**
210-
* Adds a subclass to this inheritance hierachy.
210+
* Adds a subclass to this inheritance hierarchy.
211211
*
212212
* @param string $name
213213
* @param string $class
@@ -319,7 +319,7 @@ public function addManyToOne($name, $targetEntity, $inversedBy = null)
319319
}
320320

321321
/**
322-
* Creates a ManyToOne Assocation Builder.
322+
* Creates a ManyToOne Association Builder.
323323
*
324324
* Note: This method does not add the association, you have to call build() on the AssociationBuilder.
325325
*
@@ -361,7 +361,7 @@ public function createOneToOne($name, $targetEntity)
361361
}
362362

363363
/**
364-
* Adds simple inverse one-to-one assocation.
364+
* Adds simple inverse one-to-one association.
365365
*
366366
* @param string $name
367367
* @param string $targetEntity
@@ -378,7 +378,7 @@ public function addInverseOneToOne($name, $targetEntity, $mappedBy)
378378
}
379379

380380
/**
381-
* Adds simple owning one-to-one assocation.
381+
* Adds simple owning one-to-one association.
382382
*
383383
* @param string $name
384384
* @param string $targetEntity
@@ -398,7 +398,7 @@ public function addOwningOneToOne($name, $targetEntity, $inversedBy = null)
398398
}
399399

400400
/**
401-
* Creates a ManyToMany Assocation Builder.
401+
* Creates a ManyToMany Association Builder.
402402
*
403403
* @param string $name
404404
* @param string $targetEntity
@@ -418,7 +418,7 @@ public function createManyToMany($name, $targetEntity)
418418
}
419419

420420
/**
421-
* Adds a simple owning many to many assocation.
421+
* Adds a simple owning many to many association.
422422
*
423423
* @param string $name
424424
* @param string $targetEntity
@@ -438,7 +438,7 @@ public function addOwningManyToMany($name, $targetEntity, $inversedBy = null)
438438
}
439439

440440
/**
441-
* Adds a simple inverse many to many assocation.
441+
* Adds a simple inverse many to many association.
442442
*
443443
* @param string $name
444444
* @param string $targetEntity
@@ -455,7 +455,7 @@ public function addInverseManyToMany($name, $targetEntity, $mappedBy)
455455
}
456456

457457
/**
458-
* Creates a one to many assocation builder.
458+
* Creates a one to many association builder.
459459
*
460460
* @param string $name
461461
* @param string $targetEntity
@@ -475,7 +475,7 @@ public function createOneToMany($name, $targetEntity)
475475
}
476476

477477
/**
478-
* Adds simple OneToMany assocation.
478+
* Adds simple OneToMany association.
479479
*
480480
* @param string $name
481481
* @param string $targetEntity

lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function validateRuntimeMetadata($class, $parent)
193193
}
194194

195195
$class->validateIdentifier();
196-
$class->validateAssocations();
196+
$class->validateAssociations();
197197
$class->validateLifecycleCallbacks($this->getReflectionService());
198198

199199
// verify inheritance
@@ -319,7 +319,7 @@ private function addInheritedRelations(ClassMetadata $subClass, ClassMetadata $p
319319
foreach ($parentClass->associationMappings as $field => $mapping) {
320320
if ($parentClass->isMappedSuperclass) {
321321
if ($mapping['type'] & ClassMetadata::TO_MANY && !$mapping['isOwningSide']) {
322-
throw MappingException::illegalToManyAssocationOnMappedSuperclass($parentClass->name, $field);
322+
throw MappingException::illegalToManyAssociationOnMappedSuperclass($parentClass->name, $field);
323323
}
324324
$mapping['sourceEntity'] = $subClass->name;
325325
}

lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class ClassMetadataInfo implements ClassMetadata
509509
public $isIdentifierComposite = false;
510510

511511
/**
512-
* READ-ONLY: Flag indicating wheather the identifier/primary key contains at least one foreign key association.
512+
* READ-ONLY: Flag indicating whether the identifier/primary key contains at least one foreign key association.
513513
*
514514
* This flag is necessary because some code blocks require special treatment of this cases.
515515
*
@@ -631,7 +631,7 @@ public function __construct($entityName, NamingStrategy $namingStrategy = null)
631631
}
632632

633633
/**
634-
* Gets the ReflectionPropertys of the mapped class.
634+
* Gets the ReflectionProperties of the mapped class.
635635
*
636636
* @return array An array of ReflectionProperty instances.
637637
*/
@@ -938,7 +938,7 @@ public function validateIdentifier()
938938
*
939939
* @throws MappingException
940940
*/
941-
public function validateAssocations()
941+
public function validateAssociations()
942942
{
943943
foreach ($this->associationMappings as $mapping) {
944944
if ( ! ClassLoader::classExists($mapping['targetEntity']) ) {
@@ -1437,15 +1437,15 @@ protected function _validateAndCompleteOneToOneMapping(array $mapping)
14371437
));
14381438
}
14391439

1440-
$uniqueContraintColumns = array();
1440+
$uniqueConstraintColumns = array();
14411441
foreach ($mapping['joinColumns'] as &$joinColumn) {
14421442
if ($mapping['type'] === self::ONE_TO_ONE && ! $this->isInheritanceTypeSingleTable()) {
14431443
if (count($mapping['joinColumns']) == 1) {
14441444
if ( ! isset($mapping['id']) || ! $mapping['id']) {
14451445
$joinColumn['unique'] = true;
14461446
}
14471447
} else {
1448-
$uniqueContraintColumns[] = $joinColumn['name'];
1448+
$uniqueConstraintColumns[] = $joinColumn['name'];
14491449
}
14501450
}
14511451

@@ -1472,12 +1472,12 @@ protected function _validateAndCompleteOneToOneMapping(array $mapping)
14721472
? $joinColumn['fieldName'] : $joinColumn['name'];
14731473
}
14741474

1475-
if ($uniqueContraintColumns) {
1475+
if ($uniqueConstraintColumns) {
14761476
if ( ! $this->table) {
14771477
throw new RuntimeException("ClassMetadataInfo::setTable() has to be called before defining a one to one relationship.");
14781478
}
14791479
$this->table['uniqueConstraints'][$mapping['fieldName']."_uniq"] = array(
1480-
'columns' => $uniqueContraintColumns
1480+
'columns' => $uniqueConstraintColumns
14811481
);
14821482
}
14831483

@@ -1488,7 +1488,7 @@ protected function _validateAndCompleteOneToOneMapping(array $mapping)
14881488
$mapping['isCascadeRemove'] = $mapping['orphanRemoval'] ? true : $mapping['isCascadeRemove'];
14891489

14901490
if (isset($mapping['id']) && $mapping['id'] === true && !$mapping['isOwningSide']) {
1491-
throw MappingException::illegalInverseIdentifierAssocation($this->name, $mapping['fieldName']);
1491+
throw MappingException::illegalInverseIdentifierAssociation($this->name, $mapping['fieldName']);
14921492
}
14931493

14941494
return $mapping;
@@ -2051,7 +2051,7 @@ public function isInheritedField($fieldName)
20512051
}
20522052

20532053
/**
2054-
* Checks if this entity is the root in any entity-inheritance-hierachy.
2054+
* Checks if this entity is the root in any entity-inheritance-hierarchy.
20552055
*
20562056
* @return bool
20572057
*/
@@ -2427,7 +2427,7 @@ public function setCustomRepositoryClass($repositoryClassName)
24272427
* @deprecated Deprecated since version 2.4 in favor of \Doctrine\ORM\Event\ListenersInvoker
24282428
*
24292429
* @param string $lifecycleEvent The lifecycle event.
2430-
* @param object $entity The Entity on which the event occured.
2430+
* @param object $entity The Entity on which the event occurred.
24312431
*
24322432
* @return void
24332433
*/

lib/Doctrine/ORM/Mapping/DefaultEntityListenerResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Doctrine\ORM\Mapping;
2222

2323
/**
24-
* The default DefaultEntityListene
24+
* The default DefaultEntityListener
2525
*
2626
* @since 2.4
2727
* @author Fabio B. Silva <[email protected]>

lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function loadMetadataForClass($className, ClassMetadata $metadata)
247247
$mapping = array();
248248
$mapping['fieldName'] = $property->getName();
249249

250-
// Check for JoinColummn/JoinColumns annotations
250+
// Check for JoinColumn/JoinColumns annotations
251251
$joinColumns = array();
252252

253253
if ($joinColumnAnnot = $this->reader->getPropertyAnnotation($property, 'Doctrine\ORM\Mapping\JoinColumn')) {
@@ -375,7 +375,7 @@ public function loadMetadataForClass($className, ClassMetadata $metadata)
375375
$override = array();
376376
$fieldName = $associationOverride->name;
377377

378-
// Check for JoinColummn/JoinColumns annotations
378+
// Check for JoinColumn/JoinColumns annotations
379379
if ($associationOverride->joinColumns) {
380380
$joinColumns = array();
381381
foreach ($associationOverride->joinColumns as $joinColumn) {

0 commit comments

Comments
 (0)