Boudewijn Vahrmeijer
Boudewijn Vahrmeijer
@PowerGamer1, take it easy. Your effort to have this issue resolved shows 'ownership' of the issue.
does tregexpr support it?
Im against such shortcuts. Especially for usecases like this. Its very rare & adds confusion.
it's a solution, but tricky. What if there are more PKs?
closed in favor of https://github.com/yiisoft/yii2/issues/4834
:), if this was an algorithm, all the issues would have been closed at once
@Faryshta, dynamic relations are indeed useful. I'm working with these for years (I created my own extensions on top of Yii) now and practice is proving its use every day....
I agree with this. Two things can be further improved: - logic: the return value of null is weird after a positive hasAttribute inside a getter - performance: hasAttribute() performs...
> Haven't tried this yet You should. I am not posting a non-working version here ;)
@wartur, thanks for sharing. Nice to see the similarities in this example. One thing thats left to discuss is how to install this kind of script in an application. We...