Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit
https://github.com/akelos/akelos/issues
Akelos PHP Framework Forum
Discussions
Categories
Sintags
: hasMany and count
Bottom of Page
1 to 1 of 1
CommentAuthor
bebu
hi,
i have a model with a hasMany collections and i want to get the count of the association
right now i am doing it with php like this:
$Post->comment->count()
is there a sintags equivalent i can use with link_to ?
like <%= link_to post.comment.count %>
1 to 1 of 1
Back to Discussions
Top of Page