2017 © Pedro Peláez
 

yii-component yii-db-typecast

Improve Yii DB typecast

image

aggregable/yii-db-typecast

Improve Yii DB typecast

  • Thursday, December 4, 2014
  • by r.royik
  • Repository
  • 1 Watchers
  • 3 Stars
  • 166 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

yii-db-typecast

Installation

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

Either run, (*2)

php composer.phar require --prefer-dist aggregable/yii-db-typecast "@dev"

or add, (*3)

"aggregable/yii-db-typecast": "@dev"

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

Component configuration

'components' => [
    'db' => [
        'driverMap' => ['mysql' => '\aggregable\yiidbtypecast\components\MySqlSchema'],
    ],
    ...
],

ActiveRecord models configuration

/**
 * @inheritdoc
 */
public function behaviors() {
    return array_merge(parent::behaviors(), [
        'typecast' => [
            'class' => '\aggregable\yiidbtypecast\components\ActiveRecordTypecastBehavior',
        ]
    ]);
}

The Versions

04/12 2014

dev-master

9999999-dev

Improve Yii DB typecast

  Sources   Download

BSD-3-Clause

The Requires

 

by Roman Royik

yii db typecast

04/12 2014

0.1.4

0.1.4.0

Improve Yii DB typecast

  Sources   Download

BSD-3-Clause

The Requires

 

by Roman Royik

yii db typecast

18/10 2014

0.1.3

0.1.3.0

Improve Yii DB typecast

  Sources   Download

BSD-3-Clause

The Requires

 

by Roman Royik

yii db typecast