-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
yii\web\Link remove null property #18469
Comments
Looks like a bug. Would you please prepare a pull request with test for it? |
OK |
ggh2e3
added a commit
to ggh2e3/yii2
that referenced
this issue
Oct 20, 2023
ggh2e3
added a commit
to ggh2e3/yii2
that referenced
this issue
Oct 20, 2023
ggh2e3
added a commit
to ggh2e3/yii2
that referenced
this issue
Oct 20, 2023
ggh2e3
added a commit
to ggh2e3/yii2
that referenced
this issue
Oct 31, 2023
ggh2e3
added a commit
to ggh2e3/yii2
that referenced
this issue
Nov 17, 2023
Co-authored-by: Bizley <pawel.bizley@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to implement
yii\web\Linkable
to some ActiveRecord, when I'm usingyii\web\Link
the result show all property. but, if I useyii\web\Link
in nested array, the result only show some property what I set.What steps will reproduce the problem?
on my table class Activerecord, I implement yii\web\Linkable
and I add function
getLinks
the result,
but if I make nested array (managers) like this,
the result to be,
What is the expected result?
What do you get instead?
Maybe this is possible bug. But how I can only show some property without make
yii\web\Link
object in array?Additional info
I was try to add one condition on
yii\web\Link::serialize()
like this,and the result would be like expected.
The text was updated successfully, but these errors were encountered: