weavora/wform — Issue #7: Allow to specify scenarios for behavior 
Author: yurytolochko
Created: 2011-12-23 10:39:04+00:00
State: open

```php
public function behaviors() {
return array(
// attach wform behavior
'wform' => array(
'class' => 'ext.wform.WFormBehavior',
// define valid scenarios
'scenarios' => array('insert', 'save', 'customScenario'),
'relations' => array('hasOneRelation', 'belongsToRelation', 'hasManyRelation', 'manyManyRelation'),
),
);
}
```