开发者

Symfony/Doctrine: custom find() function

开发者 https://www.devze.com 2023-02-07 22:06 出处:网络
I want to extend the Doctrine_core::getTable(\'table_name\')->find(\'id\') to increme开发者_如何学编程nt the table_name.view_count field each time it is executed. Is this possible? I think it\'s no

I want to extend the Doctrine_core::getTable('table_name')->find('id') to increme开发者_如何学编程nt the table_name.view_count field each time it is executed. Is this possible?


I think it's not a good practice to put a such functionality into model.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号