Florian

Results 9 comments of Florian
trafficstars

This message appears with node v18 but disappears with node v20.

Hello : https://github.com/fouteox/pingcrm-react-inertia-laravel

See this solution for Docker Desktop OR Docker Engine rootless mode, works fine : https://github.com/cytopia/devilbox/issues/963#issuecomment-1438939653

More details : Work : ```php $post = PostFactory::createOne(); CommentFactory::createOne([ 'post' => $post, ]); $this->browser() ->get(sprintf('/api/post/%s', $post->getId())) ->assertStatus(200) ; ``` Work : ```php $post = PostFactory::createOne(); CommentFactory::createOne([ 'post' => $post,...

No, and this work too : ```php $comment = CommentFactory::createOne(['post' => PostFactory::createOne()]); $this->browser() ->get(sprintf('/api/post/%s', $comment->getPost()->getId())) ->assertStatus(200) ; $comment->setContent('content'); $comment->_save(); ```

> what happens if you do this? > > ``` > $comment->_withoutAutoRefresh(function (Post $post) { > $comment->setContent('content'); > }); > $comment->_save(); > ``` I have this error : ``` TypeError:...

Also works when we access $comment in browser via $post->getComment()->getId() : ```php $post = PostFactory::createOne(); $comment = CommentFactory::createOne(['post' => $post]); $this->browser() ->get(sprintf('/api/post/%s', $comment->getPost()->getId())) ->assertStatus(200) ; $comment->setContent('content'); $comment->_save(); ```

> I've just created a PR to mitigate this problem (note: it won't work if the setter / adder uses fluent api, due to some restrictions in symfony/var-exporter). It still...

I unfortunately did not find the time to create a reproduction project but our various exchanges allowed me to understand how to no longer have the errors. Thank you. I...