473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

symfony, doctrine:migrations:diff

103 100+
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.
Mar 15 '15 #1
0 1977

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Marek Zawadzki | last post by:
Hi all, In your opinion: what is current status of frameworks for PHP and which one would you choose? I am looking for an all-purpose, MVC-based framework I could learn and use for all the...
0
by: Narko | last post by:
Symfony Lessons I propose self-written free Symfony framework lessons for everyone: http://narkozateam.com/symfony/ If you want to know more about PHP, AJAX, MVC - take a look there and give me...
2
by: Areric | last post by:
Anyone here using Symfony framework for any substantial projects. I'm looking into it right now and finding it a bit.. well strange. Their online documentation is great for running you though a...
2
by: tolgafiratoglu | last post by:
Hope you like it: http://www.netskeleton.com good for beginners to framework concept.
0
by: php.developer2007 | last post by:
I m getting this error when i type this at php symfony -V or symfony - V "Could not open input file: symfony" Help me if any one can
1
by: Mudassir Nazir | last post by:
Are you a PHP pro? Someone who is very good at programming -- and understands the difference between TOP CODERS and everyone else? If that is the case, then you might be the type of person that...
0
by: lkrzysiak | last post by:
Hi, I want to replace default Symfony caching system with memcache deamon (via sfMemcachePlugin). I would like to use smarty templating engine instead the default symfony template system (via...
9
by: pavanponnapalli | last post by:
hi, i have data as under. 127.0.0.1 - - "GET /favicon.ico HTTP/1.1" 404 292 127.0.0.1 - - "GET /favicon.ico HTTP/1.1" 404 292 127.0.0.1 - - "GET /pear/symfony/ HTTP/1.1" 404 294...
5
by: swetha851991 | last post by:
I have tried to install sfGuardPlugin for hours an still it doesn't work. First I tried to install it this way: php symfony plugin:install sfGuardPlugin But I am getting the error.
10
by: gintare | last post by:
I sit already 2h browsing internet and i am not able to find a solution. Could you please help me. Bitnami WAMP, Symfony 1) I am not able to login to MYSQL through console using command: mysql...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.