samuelelonghin / yii2-string-id-activerecord
new Yii2 String ID ActiveRecord
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2025-01-03 00:58:02 UTC
README
Global Component
Per far configurare la lunghezza degli id in modo globale รจ necessario aggiungere il componente all'applicazione
// ... 'components' => [ // altri componenti... 'stringIdActiveRecord' => [ 'class' => samuelelonghin\db\assets\StringIdActiveRecord, 'stringIdLenght' => function () { return 15; } ] ]
o in maniera statica:
// ... 'components' => [ // altri componenti... 'stringIdActiveRecord' => [ 'class' => samuelelonghin\db\assets\StringIdActiveRecord, 'stringIdLenght' => 15, ] ]