Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override not working? #228

Open
ghost opened this issue Dec 6, 2017 · 0 comments
Open

override not working? #228

ghost opened this issue Dec 6, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 6, 2017

I want to store name column value of some tables instead of id so i have use override behavior for this like as below

return [
          'AuditTrailBehavior' => [
            'class' => 'bedezign\yii2\audit\AuditTrailBehavior',
            'override' => [
                'leadsource_id' => [
                    'tableName' => 'bs_leadstatus',
                    'searchField' => 'leadstatus_id',
                    'returnField' => 'name'
                ]
            ]
          ]
        ]; 

But still it will store leadstatus_id instead of name so how can i store name ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants