panwenbin / yii2-oci-sequence-behavior
use Oracle sequence on insert when there is no trigger
Package info
github.com/panwenbin/yii2-oci-sequence-behavior
Type:yii2-extension
pkg:composer/panwenbin/yii2-oci-sequence-behavior
1.0.0
2017-11-03 03:46 UTC
Requires
- yiisoft/yii2: ^2.0
This package is not auto-updated.
Last update: 2026-02-21 22:08:33 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',
],
];
}