Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Nathan Porter to the list of authors

  • Loading branch information...
commit a6311884f005c1d9284ea68f46fe752ec279e386 1 parent 0f3b122
@Terr Terr authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.md
View
7 README.md
@@ -28,7 +28,7 @@ Use it as a option to a find call. For example, getting a Post record with their
'User'
)
));
-
+
This returns a Post record with it's associated User data. However, this isn't much different from what you can do Containable, and with the same amount of queries. Things start to change when linking hasMany or hasAndBelongsToMany associations.
Because Linkable uses joins instead of seperate queries to get associated models, it is possible to apply conditions that operate from right to left (Tag -> Post) on hasMany and hasAndBelongsToMany associations.
@@ -84,7 +84,7 @@ As a last example, pagination. This will find and paginate all posts with the ta
)
'limit' => 10
);
-
+
$this->paginate('Post');
### Notes ##
@@ -104,10 +104,11 @@ This will fetch all users related to the specified project in one query.
- Maintained by: Arjen Verstoep (terr (at) terr (dot) nl), http://github.com/Terr
- giulianob, http://github.com/giulianob
- Chad Jablonski, http://github.com/cjab
+- Nathan Porter, https://github.com/n8man
## License ##
Licensed under The MIT License
Redistributions of files must retain the above copyright notice.
-[Download]: http://github.com/Terr/linkable/downloads
+[Download]: http://github.com/Terr/linkable/downloads
Please sign in to comment.
Something went wrong with that request. Please try again.