【问题标题】:How can I get the entity name from inside a Doctrine repository?如何从 Doctrine 存储库中获取实体名称?
【发布时间】:2017-01-21 12:30:27
【问题描述】:

我知道how to get an entity name from outside of a repository,但如果我在里面呢?

【问题讨论】:

    标签: doctrine repository entity


    【解决方案1】:

    只需使用$this->getClassMetadata()->getTableName();

    【讨论】:

      猜你喜欢
      • 2018-05-25
      • 2021-10-31
      • 1970-01-01
      • 1970-01-01
      • 2012-12-27
      • 2015-12-30
      • 2013-06-20
      • 1970-01-01
      • 2013-03-20
      相关资源
      最近更新 更多