2017 © Pedro Peláez
 

yii2-extension yii2-oci-sequence-behavior

use Oracle sequence on insert when there is no trigger

image

panwenbin/yii2-oci-sequence-behavior

use Oracle sequence on insert when there is no trigger

  • Friday, November 3, 2017
  • by panwenbin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 600 % Grown

The README.md

OciSequenceBehavior

This is usefull when an Oracle sequence not set with a trigger. Add the behavior, the primary key will be set to SEQUENCE.NEXTVAL., (*1)

Usage

Add this behavior to oci ActiveRecord model, (*2)

public function behaviors()
{
    return [
        [
            'class' => OciSequenceBehavior::className(),
            'sequenceName' => 'SOME_SEQ',
        ],
    ];
}

The Versions

03/11 2017

dev-master

9999999-dev

use Oracle sequence on insert when there is no trigger

  Sources   Download

MIT

The Requires

 

by Pan Wenbin

yii2 sequence oracle oci

03/11 2017

1.0.0

1.0.0.0

use Oracle sequence on insert when there is no trigger

  Sources   Download

MIT

The Requires

 

by Pan Wenbin

yii2 sequence oracle oci