Skip to content

Commit f21c4f0

Browse files
committed
Merge pull request #18 from filisko/patch-1
Typo fixes
2 parents b1a1540 + 4316ad3 commit f21c4f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $articleQuery = $orm->query('article');
7474

7575
### Configuration
7676

77-
By default ORM assumes that thte table name is the plural of the name of the model, and that the name of the primary key is 'id'.
77+
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'.
7878
For MongoDB database the default id field '_id' is assumed. You can ovveride these settings for a particular model in your
7979
configuration file:
8080

@@ -457,7 +457,7 @@ $categoryQuery->relatedTo('articles.author', function($query) {
457457

458458
### One To Many
459459

460-
This is the most common relationship. A category can own many articles, a topic has manty replies, etc.
460+
This is the most common relationship. A category can own many articles, a topic has many replies, etc.
461461

462462
```php
463463
// Configuration
@@ -511,7 +511,7 @@ return array(
511511
);
512512
```
513513

514-
Now that we ave relationship properties defined we may start using them:
514+
Now that we have relationship properties defined we may start using them:
515515

516516
```php
517517
// Using with entities
@@ -555,8 +555,8 @@ $articleQuery
555555
$category->articles->add($articleQuery);
556556
```
557557

558-
Queries also have properties, just like Entities do. This allows yout to perform more operations with
559-
less calls tot he database.
558+
Queries also have properties, just like Entities do. This allows you to perform more operations with
559+
less calls to the database.
560560

561561
```php
562562
// Assign articles to a category
@@ -602,7 +602,7 @@ $categoryQuery = $orm->query('category')
602602
603603
### One to One
604604

605-
One to One relationships are very similar to One To Many. The main difference isthat as soon as you attach
605+
One to One relationships are very similar to One To Many. The main difference is that as soon as you attach
606606
a new item to an owner, the previous item gets detached. A good example of this would be a relationship between
607607
an auction lot and the highest bidder. As soon as we set a new person as the highest bidder the old one is unset.
608608
Another example wold be tasks and workers. Where each task can be performed by a single worker.

0 commit comments

Comments
 (0)