Skip to content

Instantly share code, notes, and snippets.

@dozer111
Last active August 20, 2021 13:08
Show Gist options
  • Save dozer111/f48fbf744ad34255d1a3927a4e9023eb to your computer and use it in GitHub Desktop.
Save dozer111/f48fbf744ad34255d1a3927a4e9023eb to your computer and use it in GitHub Desktop.
yii1 simple AR

Скелетон Yii1 AR

use CActiveRecord;

final class OzonError extends CActiveRecord
{
    private const TABLENAME = 'OzonError';

    /**
     * {@inheritDoc}
     * @return OzonError
     */
    public static function model($className = __CLASS__): self
    {
        return parent::model($className);
    }

    public function tableName(): string
    {
        return self::TABLENAME;
    }

    public function rules(): array
    {
        return [];
    }

    public function attributeLabels(): array
    {
        return [];
    }
    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment