Wiki

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

Drills : Search by a HAS_MANY relation in Yii 2.0

Created about a year ago by softarkTutorials4 comments – viewed 35,528 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.

Using counters with ActiveRecord

Created 4 years ago by davi_alexandreTips9 comments – viewed 27,800 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).