dev-master
9999999-devAttaches a Ramsey V4::UUID
Apache-2.0
The Requires
by Jonathan Berall
extension yii2 behavior uuid ramsey
Attaches a Ramsey V4::UUID
Attaches a Ramsey V4::UUID, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist jberall/yii2-uuidbehavior "*"
or add, (*4)
"jberall/yii2-uuidbehavior": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by : Where _id is the column in the database representing a UUID. public function behaviors() { return [ 'uuidBehavior' => [ 'class' => \jberall\uuidbehavior\UuidBehavior::className(), 'uuid_column' => '_id', ], ]; }, (*6)
Attaches a Ramsey V4::UUID
Apache-2.0
extension yii2 behavior uuid ramsey