The question is how to tell to doctrine:migration:diff to generate migration for certain entity (there are several entities and in my case diff recognise only the first of them "Workout", does not recognise "Author" and "Post")?
Maybe i should use some other command than "doctrine:migration:diff" ?
Windows 7,
Bitnami WAMP Stack 5.4.38-0
NetBeans IDE 8.0.2
I am enrolled to two Udemy courses:
1) Intro to PHP Web Application Development with Symfony
(https://www.udemy.com/symfony-development/#/)
2) Introduction to web development with Symfony2
(https://www.udemy.com/introduction-to-web-development-with-symfony2/#/)
I created symfony project "myproject" and i am working in it during both courses.
The Bundle "Workout" and the table "workout" is created in the first course.
The Bundles "Blog/CoreBundle", "Blog/ModelBundle" and entities "ModelBundle:Post", "ModelBundle:Author" are created in the second course.
When i run:
c:\Bitnami\wampstack-5.4.38-0\sym_prog\myproject>php app/console doctrine:migrations:diff
no files are generated for Post and Author.
i am getting the line in cmd: "No changes detected in your mapping information".
I
1) dropped Workout table in PhpMyAdmin
After this command:
c:\Bitnami\wampstack-5.4.38-0\sym_prog\myproject>php app/console doctrine:migraions:diff
generated migration for "Workout".
2) deleted Workout folder in
C:\Bitnami\wampstack-5.4.38-0\sym_prog\myproject\src\Workout
3) deleted line " new Amber\WorkoutBundle\AmberWorkoutBundle(), "
in myproject\app\AppKernel.php
4)deleted shortcut (it is not file)
C:\Bitnami\wampstack-5.4.38-0\sym_prog\myproject\web\bundles\amberworkout
After this command:
c:\Bitnami\wampstack-5.4.38-0\sym_prog\myproject>php app/console doctrine:migraions:diff
says "No changes detected in your mapping information"
and still does not generate migration for Author and Post.
The question is how to tell to doctrine:migration:diff to generate migration for certain entity (there are several entities and in my case diff recognise only the first of them "Workout", or does not recognise "Author" and "Post")?
Please find enclosed the myproject file without workout, because i deleted this bundle.