Skip to content

Commit

Permalink
fixed typo. close pagekit#70
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Jun 20, 2016
1 parent cd706c8 commit fce0d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion developer/orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The application data you represent in your database model has certain relations

### Belongs-to relation

The basic annotation that is used across the different relation types it the `@BelongsTo` annotation above a model property. In the following example (taken from the `Post` model of the Blog) we specify a `$user` property, which is defined to point to the instance of the Pagekit `User` model.
The basic annotation that is used across the different relation types is the `@BelongsTo` annotation above a model property. In the following example (taken from the `Post` model of the Blog) we specify a `$user` property, which is defined to point to the instance of the Pagekit `User` model.

The `keyFrom` parameter specify which source property is used to point to the user id. Note how we also need to define the according `user_id` property in order for the relationship to be resolved by a query.

Expand Down

0 comments on commit fce0d62

Please sign in to comment.