2017 © Pedro Peláez
 

library yii2-postgresql-array-field

Yii2 postgresql array field support behavior

image

kossmoss/yii2-postgresql-array-field

Yii2 postgresql array field support behavior

  • Monday, March 21, 2016
  • by kossmoss
  • Repository
  • 2 Watchers
  • 7 Stars
  • 10,986 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

yii2-postgresql-array-field

Yii2 postgresql array field support behavior, (*1)

================, (*2)

Provides PostgreSQL array fields support for yii2 models., (*3)

Installation

Add a dependency to your project's composer.json:, (*4)

{
    "require": {
        "kossmoss/yii2-postgresql-array-field": "^0.2"
    }
}

Usage example

Attach behavior to one or more fields of your model

```php use yii\db\ActiveRecord; use \kossmoss\PostgresqlArrayField\PostgresqlArrayFieldBehavior;, (*5)

/** * @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) ] ]; } }, (*6)

The Versions

21/03 2016

dev-master

9999999-dev

Yii2 postgresql array field support behavior

  Sources   Download

MIT

The Requires

 

by Konstantin Petrov

21/03 2016

0.2.1

0.2.1.0

Yii2 postgresql array field support behavior

  Sources   Download

MIT

The Requires

 

by Konstantin Petrov

15/02 2016

0.2

0.2.0.0

Yii2 postgresql array field support behavior

  Sources   Download

MIT

The Requires

 

by Konstantin Petrov

15/02 2016

0.1

0.1.0.0

Yii2 postgresql array field support behavior

  Sources   Download

MIT

The Requires

 

by Konstantin Petrov