Skip to content

Commit

Permalink
#24 fixed mistake in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPB committed Aug 7, 2015
1 parent 7680632 commit 34e0fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ To model this relationship using Maphper first set up the standard `actor` and `

```php
$actors = new \Maphper\Maphper(new \Maphper\Datasource\Database($pdo, 'actor', 'id'));
$movies = new \Maphper\Maphper(new \Maphper\Datasource\Database($pdo, 'actor', 'id'));
$movies = new \Maphper\Maphper(new \Maphper\Datasource\Database($pdo, 'movie', 'id'));
```

Then add a table for the intermediate table. Note this requires two primary keys, one for the `actorId` and one for the `movieId`
Expand Down

0 comments on commit 34e0fa9

Please sign in to comment.