Download the PHP package kossmoss/yii2-postgresql-array-field without Composer
On this page you can find all versions of the php package kossmoss/yii2-postgresql-array-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kossmoss/yii2-postgresql-array-field
More information about kossmoss/yii2-postgresql-array-field
Files in kossmoss/yii2-postgresql-array-field
Download kossmoss/yii2-postgresql-array-field
More information about kossmoss/yii2-postgresql-array-field
Files in kossmoss/yii2-postgresql-array-field
Vendor kossmoss
Package yii2-postgresql-array-field
Short Description Yii2 postgresql array field support behavior
License MIT
Package yii2-postgresql-array-field
Short Description Yii2 postgresql array field support behavior
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-postgresql-array-field
yii2-postgresql-array-field
Yii2 postgresql array field support behavior
================
Provides PostgreSQL array fields support for yii2 models.
Installation
Add a dependency to your project's composer.json:
Usage example
Attach behavior to one or more fields of your model
use yii\db\ActiveRecord;
use \kossmoss\PostgresqlArrayField\PostgresqlArrayFieldBehavior;
/**
* @property array $modelField
*/
class Model extends ActiveRecord{
public function behaviors() {
return [
[
'class' => PostgresqlArrayFieldBehavior::className(),
'arrayFieldName' => 'modelField', // model's field to attach behavior
'onEmptySaveNull' => true // if set to false, empty array will be saved as empty PostreSQL array '{}' (default: true)
]
];
}
}
All versions of yii2-postgresql-array-field with dependencies
PHP Build Version
Package Version
The package kossmoss/yii2-postgresql-array-field contains the following files
Loading the files please wait ....