New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

aggregable/yii-db-typecast

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aggregable/yii-db-typecast

Improve Yii DB typecast

yii-component
Source
Packagist
Version
0.1.4
Version published
Total downloads
195
Maintainers
1
Created
Source

yii-db-typecast

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json.

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',
		]
	]);
}

Keywords

db

FAQs

Package last updated on 04 Dec 2014

Related posts