Wiki

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

Using counters with ActiveRecord

Updated 6 months ago by marcovtwoutTips9 comments – viewed 23,617 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

Updated 7 months ago by softarkTutorials1 comment – viewed 8,493 times – ( +9 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.