Comments (2)
Update. There is no sense depends on type of the attribute. Scenario should be applied before assigning attributes (after object will be instatiated to be sure in the future) because setAttributes checks safe ability of attributes depends on current scenario. You do it before validate. Its too late.
from yii2-save-relations-behavior.
Hi @phrakon,
Yep, you’re right.
Bug fix is on its way. The master branch contains a first fix but there’s still one issue. I will hopefully publish the full fix tomorrow.
Thanks.
from yii2-save-relations-behavior.
Related Issues (20)
- Updating multiple records in nested related model HOT 3
- Add the ability to retrieve old relations values
- Add the ability to retrieve and mark dirty relations
- hasOne relation not rollback when owner model is not valid and relation are inserted HOT 3
- "private" replace with "protected".
- Junction Table Extra Columns forces delete/insert on existing records
- usage question maybe a bug? HOT 3
- feature request - work only existing models, or create new
- 1:1 connection - feature request
- hasOne relation via() is not working as expected
- Error Unable to link models: the primary key of
- Nested model changes does not save if parent model not dirty. HOT 1
- Only write, not rewrite
- Don't work with some relations HOT 5
- Fail when parent model has more than one PRIMARY KEY
- Using behavior for relations HOT 1
- Load relations with Json Data
- Enh: Аdjust access to save the relation HOT 4
- unlink and link should also use the via on conditions of the relation
- Unitentionally triggered afterSave on related model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-save-relations-behavior.