Wiki

Articles tagged with "activerecord", sorted by commentsX
Displaying 1-3 of 3 result(s).

Using counters with ActiveRecord

Created 4 years ago by davi_alexandreTips9 comments – viewed 26,886 times – ( +14 / -1 ) – version 1.1
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).

Drills : Search by a HAS_MANY relation in Yii 2.0

Created about a year ago by softarkTutorials3 comments – viewed 30,144 times – ( +19 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.