Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Doctrine:Schema:Update method always wrong
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xhe  
View profile  
 More options Mar 24 2012, 5:57 pm
From: xhe <hexuf...@gmail.com>
Date: Sat, 24 Mar 2012 14:57:36 -0700 (PDT)
Local: Sat, Mar 24 2012 5:57 pm
Subject: Doctrine:Schema:Update method always wrong
I am now following symfony2 book at http://symfony.com/doc/current/book/doctrine.html,
but whenever I run this command, php app/console
doctrine:schema:update --force, I always got error there:

  [PDOException]

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an
error in y
our SQL syntax; check the manual that corresponds to your MySQL server
version f
or the right syntax to use near 'TABLES WHERE Table_type = 'BASE
TABLE'' at line
 1

I am strictly following the book code. checked google a lot, mostly
people said this is because the reserved mysql word, but I don't think
any reserved words in the code.

I believe this has been met by everyone who reads symfony2 book.

Any ideas? Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Pivetta  
View profile  
 More options Mar 26 2012, 4:05 am
From: Marco Pivetta <ocram...@gmail.com>
Date: Mon, 26 Mar 2012 10:05:35 +0200
Local: Mon, Mar 26 2012 4:05 am
Subject: Re: [Symfony2] Doctrine:Schema:Update method always wrong

You could --dump-sql and see the complete statements before they get
executed. That should give you an idea of why there's failures.
Marco Pivetta

http://twitter.com/Ocramius

http://marco-pivetta.com

On 24 March 2012 22:57, xhe <hexuf...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Özgür Kılıçaslan  
View profile  
 More options Apr 1 2012, 1:47 pm
From: Özgür Kılıçaslan <ozgurkilicas...@gmail.com>
Date: Sun, 1 Apr 2012 20:47:36 +0300
Local: Sun, Apr 1 2012 1:47 pm
Subject: Re: [Symfony2] Doctrine:Schema:Update method always wrong

what was the problem then @xhe?

2012/3/26 Marco Pivetta <ocram...@gmail.com>

--
*Görünenler*, *gerçek olsaydı bilime* gerek kalmazdı.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
r1pp3rj4ck  
View profile  
 More options Apr 2 2012, 7:28 pm
From: r1pp3rj4ck <attila.bu...@gmail.com>
Date: Mon, 2 Apr 2012 16:28:53 -0700 (PDT)
Local: Mon, Apr 2 2012 7:28 pm
Subject: Re: [Symfony2] Doctrine:Schema:Update method always wrong

We have no idea about your problem, because the problem is in your ORM.
That's why you should call the doctrine:schema:update --dump-sql, it will
echo the plain SQL queries. That may give you a hint as ocramius said.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »