php - Generating getters and setters for entities out of a bundle -


i created models in orm-designer , changed doctrine config file know application structure in following format

-app -src    -acme      - model         - model_1.php         - model_2.php         - ...      - applicationbundle - ... 

doctrine config:

# doctrine configuration doctrine:     dbal:         driver:   "%database_driver%"         host:     "%database_host%"         port:     "%database_port%"         dbname:   "%database_name%"         user:     "%database_user%"         password: "%database_password%"         charset:  utf8         # if using pdo_sqlite database driver, add path in parameters.yml         # e.g. database_path: "%kernel.root_dir%/data/data.db3"         # path:     "%database_path%"      orm:         auto_generate_proxy_classes: "%kernel.debug%"         # auto_mapping: true          mappings:             model:                 type: yml                 dir: %kernel.root_dir%/../src/acme/model                 prefix: acme\model                 alias: model                 is_bundle: false 

model_1.php example:

<?php namespace acme\model; use doctrine\orm\mapping orm;  /**   * @orm\entity  */ class model_1 {     /**       * @orm\id      * @orm\column(type="integer")      * @orm\generatedvalue(strategy="auto")      */     private $id;      /**       * @orm\column(type="string", nullable=true)      */     private $attribute_01;      /**       * @orm\column(type="string", nullable=true)      */     private $attribute_02;      /**       * @orm\column(type="string", nullable=true)      */     private $attribute_03; } 

as see model not bundle , when try use doctrine:generate:entities acme command set missing getters , setters throws following exception:

[runtimeexeption] namespace "acme" not contain mapped entities. 

what's wrong here?


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -