Fixed typos

This commit is contained in:
Pascal Borreli
2012-07-24 09:31:27 +00:00
parent f969776312
commit 8a34aa5077
43 changed files with 65 additions and 65 deletions

View File

@@ -223,7 +223,7 @@ Want to join on a different foreign key? No problem. Just pass it in the second
return $this->has_many('Comment', 'my_foreign_key');
You may be wondering: _If the dynamic properties return the relationship and require less keystokes, why would I ever use the relationship methods?_ Actually, relationship methods are very powerful. They allow you to continue to chain query methods before retrieving the relationship. Check this out:
You may be wondering: _If the dynamic properties return the relationship and require less keystrokes, why would I ever use the relationship methods?_ Actually, relationship methods are very powerful. They allow you to continue to chain query methods before retrieving the relationship. Check this out:
echo Post::find(1)->comments()->order_by('votes', 'desc')->take(10)->get();