Coder Social home page Coder Social logo

Comments (7)

linshuboy avatar linshuboy commented on July 19, 2024 2

可以提供一段可以复现的代码吗?如果能够更进一步在 https://github.com/goravel/example 中提供一个复现 PR 将会更好。thanks!

上面是分别复现两种情况的补丁文件,希望能帮助到你

from goravel.

github-actions avatar github-actions commented on July 19, 2024

Hi @linshuboy 👋

Thanks for opening this issue to Goravel, we will respond as soon as possible! 💖
感谢您向 Goravel 提出此 Issue,我们将尽快反馈! 💖

If you like this project, please ⭐star⭐ our repository to support us!
如果您喜欢这个项目,请 Star 仓库给予我们支持!

from goravel.

hwbrzzl avatar hwbrzzl commented on July 19, 2024

可以提供一段可以复现的代码吗?如果能够更进一步在 https://github.com/goravel/example 中提供一个复现 PR 将会更好。thanks!

from goravel.

linshuboy avatar linshuboy commented on July 19, 2024

事件回调拿不到ID.patch
事件能拿到ID,但是更新也会触发创建后事件.patch

from goravel.

hwbrzzl avatar hwbrzzl commented on July 19, 2024

事件回调拿不到ID: 是因为 id 被嵌套在了 orm.Model 中,框架上没处理到这个情况,将会修复下,目前你可以将 orm.Model 定义的内容整体移到外层,这样就可以拿到 id 了;

事件能拿到ID,但是更新也会触发创建后事件:应该是因为你定义了两个 primaryKey,可以删除下图的 ID 试下,应该就不会触发 created 了,但这时会变为第一种情况,拿不到 id

image

感谢反馈!

from goravel.

linshuboy avatar linshuboy commented on July 19, 2024

事件回调拿不到ID: 是因为 id 被嵌套在了 orm.Model 中,框架上没处理到这个情况,将会修复下,目前你可以将 orm.Model 定义的内容整体移到外层,这样就可以拿到 id 了;

事件能拿到ID,但是更新也会触发创建后事件:应该是因为你定义了两个 primaryKey,可以删除下图的 ID 试下,应该就不会触发 created 了,但这时会变为第一种情况,拿不到 id

image 感谢反馈!

感谢响应,这个问题修复会在短时间之内上线吗?

from goravel.

hwbrzzl avatar hwbrzzl commented on July 19, 2024

是的,预期会修复到 1.13.10

from goravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.