View Snippet #210

    namespace app\models;

use Yii;

/**
 * This is the model class for table "albums"
 * ...
 */
class Album extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return "albums";
    }
    
    /**
     * @inheritdoc
     * @return AlbumQuery
     */
    public static function find()
    {
        return new AlbumQuery(get_called_class());
    }