标签: doctrine repository entity
我知道how to get an entity name from outside of a repository,但如果我在里面怎么样?
答案 0 :(得分:0)
只需使用$this->getClassMetadata()->getTableName();
$this->getClassMetadata()->getTableName();