Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Only write, not rewrite #59

Open
bemulima opened this issue Mar 12, 2020 · 0 comments
Open

Only write, not rewrite #59

bemulima opened this issue Mar 12, 2020 · 0 comments
Assignees

Comments

@bemulima
Copy link

I have a relation (has many) model and when saved common model I would like SaveRelationsBehavior only write new record to db. Now SaveRelationsBehavior every time rewriting relations data. This my behavior in model:

public function behaviors() {
        return [
            [
                'class' => SaveRelationsBehavior::class,
                'relations' => [
                    'vacancies',
                    'resumes'
                ],
            ],
        ];
    }

So, how can I do to only writer SaveRelationsBehavior?

@nstCactus nstCactus self-assigned this Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants