2017 © Pedro Peláez
 

yii2-extension yii2-find-by-attribute

Allowed to use magic methods for finding active records by attributes

image

bigdropinc/yii2-find-by-attribute

Allowed to use magic methods for finding active records by attributes

  • Tuesday, May 16, 2017
  • by tv88dn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Find By Attribute

Allowed to use magic methods for finding active records by attributes, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist bigdropinc/yii2-find-by-attribute "*"

or add, (*4)

"bigdropinc/yii2-find-by-attribute": "*"

to the require section of your composer.json file., (*5)

Usage

Add into your base Active Record method like this, (*6)

use bigdropinc\db\FindByAttribute

public static function __callStatic($name, $arguments)
    {
        if(static::isFindByCanProcess($name)){
            return static::processFindBy($name, $arguments);
        }
    }

The Versions

16/05 2017

dev-master

9999999-dev

Allowed to use magic methods for finding active records by attributes

  Sources   Download

BSD-3-Clause

The Requires

 

by Vadim Trunov

extension yii2 activerecord attribute find

16/05 2017

v0.2

0.2.0.0

Allowed to use magic methods for finding active records by attributes

  Sources   Download

BSD-3-Clause

The Requires

 

by Vadim Trunov

extension yii2 activerecord attribute find

16/05 2017

v0.1

0.1.0.0

Allowed to use magic methods for finding active records by attributes

  Sources   Download

BSD-3-Clause

The Requires

 

by Vadim Trunov

extension yii2 activerecord attribute find