I am following course:
https://www.udemy.com/introduction-to-web-development-with-symfony2/#/lecture/933870
Lecture 38.
In short, they explain how to create Blog website.
There are Model and Core bundles.
There are Author and Post entities in Model bundle (Author and Post controllers in Core bundle).
I have successfully created slug column in Author table with doctrine:migrat ions:diff and doctrine:migrat ions:migrate.
But i can not generate slug contents, because command:
doctrine:fixtur es:load gives a PHP fatal error:
"PHP Fatal error: Class 'Blog\Model\Bun dle\Repository\ AuthorRepositor y' not foun
d in C:\Bitnami\wamp stack-5.4.38-0\sym_prog\mypr oject\vendor\do ctrine\orm\lib\ Do
ctrine\ORM\Repo sitory\DefaultR epositoryFactor y.php on line 75"
I have compared four related (from my point of view) Author files :
1) src\Blog\ModelB undle\Entity\Au thor.php
2) src\Blog\CoreBu ndle\Controller \AuthorControll er.php
3) src\Blog\ModelB undle\Repositor y\AuthorReposit ory.php
4) src\Blog\ModelB undle\DataFixtu res\ORM\10-Authors.php
with files provided at the end of the course. There is no difference. I also compared them with Post files, i mean i checked the namespaces i import - again i import and use the adequate namespace as in Post, where slugs were created successfully.
What are other files which doctrine:fixtur es:load touch? Where i should search for mistake?
https://www.udemy.com/introduction-to-web-development-with-symfony2/#/lecture/933870
Lecture 38.
In short, they explain how to create Blog website.
There are Model and Core bundles.
There are Author and Post entities in Model bundle (Author and Post controllers in Core bundle).
I have successfully created slug column in Author table with doctrine:migrat ions:diff and doctrine:migrat ions:migrate.
But i can not generate slug contents, because command:
doctrine:fixtur es:load gives a PHP fatal error:
"PHP Fatal error: Class 'Blog\Model\Bun dle\Repository\ AuthorRepositor y' not foun
d in C:\Bitnami\wamp stack-5.4.38-0\sym_prog\mypr oject\vendor\do ctrine\orm\lib\ Do
ctrine\ORM\Repo sitory\DefaultR epositoryFactor y.php on line 75"
I have compared four related (from my point of view) Author files :
1) src\Blog\ModelB undle\Entity\Au thor.php
2) src\Blog\CoreBu ndle\Controller \AuthorControll er.php
3) src\Blog\ModelB undle\Repositor y\AuthorReposit ory.php
4) src\Blog\ModelB undle\DataFixtu res\ORM\10-Authors.php
with files provided at the end of the course. There is no difference. I also compared them with Post files, i mean i checked the namespaces i import - again i import and use the adequate namespace as in Post, where slugs were created successfully.
What are other files which doctrine:fixtur es:load touch? Where i should search for mistake?
Comment