• <bdo id='RzYL7'></bdo><ul id='RzYL7'></ul>
      <legend id='RzYL7'><style id='RzYL7'><dir id='RzYL7'><q id='RzYL7'></q></dir></style></legend>

      <small id='RzYL7'></small><noframes id='RzYL7'>

      <i id='RzYL7'><tr id='RzYL7'><dt id='RzYL7'><q id='RzYL7'><span id='RzYL7'><b id='RzYL7'><form id='RzYL7'><ins id='RzYL7'></ins><ul id='RzYL7'></ul><sub id='RzYL7'></sub></form><legend id='RzYL7'></legend><bdo id='RzYL7'><pre id='RzYL7'><center id='RzYL7'></center></pre></bdo></b><th id='RzYL7'></th></span></q></dt></tr></i><div id='RzYL7'><tfoot id='RzYL7'></tfoot><dl id='RzYL7'><fieldset id='RzYL7'></fieldset></dl></div>
    1. <tfoot id='RzYL7'></tfoot>

        symfony 2:命名空间“Acme"不包含任何映射实体

        时间:2024-08-15

            <legend id='hacMs'><style id='hacMs'><dir id='hacMs'><q id='hacMs'></q></dir></style></legend>
              <tbody id='hacMs'></tbody>
              • <bdo id='hacMs'></bdo><ul id='hacMs'></ul>
                <tfoot id='hacMs'></tfoot>

                  <small id='hacMs'></small><noframes id='hacMs'>

                1. <i id='hacMs'><tr id='hacMs'><dt id='hacMs'><q id='hacMs'><span id='hacMs'><b id='hacMs'><form id='hacMs'><ins id='hacMs'></ins><ul id='hacMs'></ul><sub id='hacMs'></sub></form><legend id='hacMs'></legend><bdo id='hacMs'><pre id='hacMs'><center id='hacMs'></center></pre></bdo></b><th id='hacMs'></th></span></q></dt></tr></i><div id='hacMs'><tfoot id='hacMs'></tfoot><dl id='hacMs'><fieldset id='hacMs'></fieldset></dl></div>
                  本文介绍了symfony 2:命名空间“Acme"不包含任何映射实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在关注这本书和页面 http://symfony.com/doc/current/book/doctrine.html

                  I am following the book and on the page http://symfony.com/doc/current/book/doctrine.html

                  在阅读本书时,我正在尝试处理产品和类别表的关系,而学说生成命令给了我以下错误.

                  While following the book I am trying to work on relationship of product and category table and doctrine generate command is giving me following error.

                  php app/console doctrine:generate:entities Acme
                  Generating entities for namespace "Acme"
                  
                  
                  
                    [RuntimeException]                                      
                    Namespace "Acme" does not contain any mapped entities.  
                  
                  
                  
                  doctrine:generate:entities [--path="..."] [--no-backup] name
                  

                  谢谢

                  推荐答案

                  With

                  doctrine:generate:entity
                  

                  您将创建新实体.

                  当你手动添加一些属性时

                  And when you add some attributes by hand with

                  doctrine:generate:entities AcmeDemoBundle:User
                  

                  您将创建 AcmeDemoBundle 的实体 User 的所有访问器(getter 和 setter)

                  you'll create all accessor (getter and setter) of the entity User of AcmeDemoBundle

                  这篇关于symfony 2:命名空间“Acme"不包含任何映射实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:返回数组,而不是来自 Doctrine 查询的对象 - Symfony2 下一篇:使用 symfony 和 MAMP 时出现 PDO 连接错误

                  相关文章

                  <i id='yxwWU'><tr id='yxwWU'><dt id='yxwWU'><q id='yxwWU'><span id='yxwWU'><b id='yxwWU'><form id='yxwWU'><ins id='yxwWU'></ins><ul id='yxwWU'></ul><sub id='yxwWU'></sub></form><legend id='yxwWU'></legend><bdo id='yxwWU'><pre id='yxwWU'><center id='yxwWU'></center></pre></bdo></b><th id='yxwWU'></th></span></q></dt></tr></i><div id='yxwWU'><tfoot id='yxwWU'></tfoot><dl id='yxwWU'><fieldset id='yxwWU'></fieldset></dl></div>
                  1. <small id='yxwWU'></small><noframes id='yxwWU'>

                    • <bdo id='yxwWU'></bdo><ul id='yxwWU'></ul>
                      <legend id='yxwWU'><style id='yxwWU'><dir id='yxwWU'><q id='yxwWU'></q></dir></style></legend>

                      <tfoot id='yxwWU'></tfoot>