panwenbin/yii2-oci-sequence-behavior

use Oracle sequence on insert when there is no trigger

Installs: 143

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/panwenbin/yii2-oci-sequence-behavior

1.0.0 2017-11-03 03:46 UTC

This package is not auto-updated.

Last update: 2025-10-04 20:23:45 UTC


README

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.

Usage

Add this behavior to oci ActiveRecord model

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