active-record

Installation
SKILL.md

Yii2 Active Record

When to use

  • The user wants to define a Yii2 Active Record model class mapped to a database table.
  • The user is building a Yii2 query with the query builder or Active Record find to filter records from user input.
  • The user needs to declare a Yii2 Active Record relation with hasOne or hasMany between models.

When NOT to use

  • Do not use SQL Active Record for MongoDB, Redis, or Elasticsearch data; use the dedicated Yii2 extension for that store.
  • Do not force complex analytical or reporting SQL through Active Record models when the Query Builder or a raw parameterized query is clearer.

Core guidance

Installs
1
GitHub Stars
3
First Seen
Jul 3, 2026
active-record — anyorgname/php-skills