Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设您有一个名为 orders 的模块,当它添加时,它应该更新另一个模块(另一个模块的表)上的值,并且 orders 确实包含另一个模块的 id 它的表。我打算用 Zend 的 TableGateway 来做这件事,但我不知道如何改变其他表。
好吧,您可以在订单插入后触发事件。在您的第二个模块中,为您的订单插入事件创建一个侦听器。