Fix a few typos in doctrine manual
This commit is contained in:
parent
bc0f853b52
commit
a1079e692c
@ -120,7 +120,7 @@ The annotation driver can be configured with a factory method on the `Doctrine\O
|
||||
$driverImpl = $config->newDefaultAnnotationDriver('/path/to/lib/MyProject/Entities');
|
||||
$config->setMetadataDriverImpl($driverImpl);
|
||||
|
||||
The path information to the entities is requied for the annotation driver, because otherwise
|
||||
The path information to the entities is required for the annotation driver, because otherwise
|
||||
mass-operations on all entities through the console could not work correctly.
|
||||
|
||||
+++ Metadata Cache (***RECOMMENDED***)
|
||||
|
@ -469,7 +469,7 @@ The following methods exist on the `AbstractQuery` which both `Query` and `Nativ
|
||||
++++ Parameters
|
||||
|
||||
Prepared Statements that use numerical or named wildcards require additional parameters to be executable
|
||||
agains the database. To pass parameters to the query the following methods can be used:
|
||||
against the database. To pass parameters to the query the following methods can be used:
|
||||
|
||||
* `AbstractQuery::setParameter($param, $value)` - Set the numerical or named wildcard to the given value.
|
||||
* `AbstractQuery::setParameters(array $params)` - Set an array of parameter key-value pairs.
|
||||
@ -516,7 +516,7 @@ are to be used in userland:
|
||||
|
||||
* Query::HINT_FORCE_PARTIAL_LOAD - Allows to hydrate objects although not all their columns are fetched. This query
|
||||
hint can be used to handle memory consumption problems with large result-sets that contain char or binary data.
|
||||
Doctrine has no way of implicitly reloaded this data. Partially loaded objects have to be passed to
|
||||
Doctrine has no way of implicitly reloading this data. Partially loaded objects have to be passed to
|
||||
`EntityManager::refresh()` if they are to be reloaded fully from the database.
|
||||
* Query::HINT_REFRESH - This query is used internally by `EntityManager::refresh()` and can be used in userland aswell.
|
||||
If you specify this hint and a query returns the data for an entity that is already managed by the UnitOfWork, the
|
||||
|
@ -146,7 +146,7 @@ The result would look like this:
|
||||
Note that this would be a partial object if the entity has more fields than just id and name. In the example above the column and field names are identical but that is not necessary, of course. Also note that the query string passed to createNativeQuery is **real native SQL**. Doctrine does not touch this SQL in any way.
|
||||
|
||||
In the previous basic example, a User had no relations and the table the class is mapped to owns no foreign keys.
|
||||
The next an example assumes User has a unidirectional or bidirectional one-to-one association to a CmsAddress,
|
||||
The next example assumes User has a unidirectional or bidirectional one-to-one association to a CmsAddress,
|
||||
where the User is the owning side and thus owns the foreign key.
|
||||
|
||||
[php]
|
||||
|
Loading…
x
Reference in New Issue
Block a user