Replies: 3 comments 2 replies
-
|
Please submit a PR, I also think this is a welcome improvement. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Sure. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes, if not the other maintainers will suggest an alternative. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The current behaviour of HasRelationships::addRelation is to fail when the developer tries to override an existing relation via the
add*Relation()methods. This is due to this line. I expect to have the ability to override an existing relation because currently I have to use the PHP native way.Example
\Backend\Models\Usermodel:I would like to override the value of the
avatarrelation in order to use my customFile::classimplementation.The following approach doesn't work:
It fails with the following error:
As a workaround, I can do this:
It would be nice to do something like this:
What do you think about it? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions