开发者

Plural Form Name for tables problem in Symfony

开发者 https://www.devze.com 2023-02-08 18:48 出处:网络
I use database that has been created by someone else and I can\'t change it. Database uses plural form for its tables\' names. In my symfony application I use Propel as ORM. I wanted to change tables\

I use database that has been created by someone else and I can't change it. Database uses plural form for its tables' names. In my symfony application I use Propel as ORM. I wanted to change tables' names using phpName attribute in my schema.yml but it works for model only. Forms and filters have wrong (automatically generated) names.

Here is my schema.yml:

AgentServices: _attributes: { phpName: AgentService } ...

In lib\model I have:

AgentService.php and AgentServicePeer.php (this is correct)

but in lib/form I have:

AgentservicesForm.class.php

开发者_如何学编程

Any suggestions what to do in this case?

Thanks


Ok,

I've recreated the project and built everything from scratch. It worked. I can't explain it though. It wasn't surely a cache issue because I was clering it plenty of times. Strange thing.

0

精彩评论

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