Skip to content

Commit 4ab62c1

Browse files
authored
Merge pull request #25 from filisko/master
typos and syntax fixes
2 parents 7f38678 + 26ea627 commit 4ab62c1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $orm = new \PHPixie\ORM($database, $slice->arrayData(array(
5252
5353
## Models
5454

55-
A Model consists of a Repository, Queries and Entities and will usuaully map to a table in a relational database
55+
A Model consists of a Repository, Queries and Entities and will usually map to a table in a relational database
5656
or a document collection in MongoDB.
5757

5858
* Entity - a single item, stored in the database, e.g. an article
@@ -68,14 +68,14 @@ $newArticle = $repository->createEntity();
6868
$articleQuery = $repository->query();
6969

7070
// shorthands
71-
$newArtcile = $orm->createEntity('article');
71+
$newArticle = $orm->createEntity('article');
7272
$articleQuery = $orm->query('article');
7373
```
7474

7575
### Configuration
7676

7777
By default ORM assumes that the table name is the plural of the name of the model, and that the name of the primary key is 'id'.
78-
For MongoDB database the default id field '_id' is assumed. You can ovveride these settings for a particular model in your
78+
For MongoDB database the default id field '_id' is assumed. You can override these settings for a particular model in your
7979
configuration file:
8080

8181
```php
@@ -317,7 +317,7 @@ class ORMWrappers extends \PHPixie\ORM\Wrappers\Implementation
317317
);
318318

319319
// Model names of repositories to wrap
320-
protected $databaseQueries = array(
320+
protected $databaseRepositories = array(
321321
'user'
322322
);
323323

@@ -345,6 +345,7 @@ class ORMWrappers extends \PHPixie\ORM\Wrappers\Implementation
345345
}
346346

347347
public function postEntity($entity)
348+
{
348349
return new PostEntity($entity);
349350
}
350351
}

0 commit comments

Comments
 (0)