orm - Tell doctrine to ignore a class when looking for mapping metadata -


i have doctrine.orm config:

course_scheduling:                 auto_mapping: false                 mappings:                     coursescheduling:                         type: yml                         dir: '%kernel.root_dir%/../app/resources/config/doctrine/coursescheduling'                         alias: 'coursescheduling'                         prefix: 'akademia\institution\coursescheduling\domain\model'                         is_bundle: false                     common:                         type: yml                         dir: '%kernel.root_dir%/../app/resources/config/doctrine/coursescheduling/common'                         alias: 'common'                         prefix: 'akademia\institution\common\domain\model'                         is_bundle: false 

the classes under namespace akademia\institution\coursescheduling\domain\model:

  • scheduledcourse
  • coursesession
  • courseschedule

inside folder '%kernel.root_dir%/../app/resources/config/doctrine/coursescheduling' dont have courseschedule.orm.yml , dont want create mapping since use courseschedule contain list of coursesessions inside scheduledcourse this:

scheduledcourse.php

public function getschedule() : courseschedule {     return new courseschedule($this-sessions); } 

basically scheduledcourse has one-to-many unidirectional association coursesession

right gives error:

no mapping file found named 'courseschedule.orm.yml' class 'akademia\institution\coursescheduling\domain\model\courseschedule'.

is there way tell doctrine ignore courseschedule , don't mapping file?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -