Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion dump /load data conflicts
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:
Follow-up To:
Add Cc | Add Follow-up 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 that you hear
 
Gandalf  
View profile   Translate to Translated (View Original)
 More options 27 June, 09:14
From: Gandalf <ganda...@gmail.com>
Date: Sat, 27 Jun 2009 03:14:50 -0500
Local: Sat 27 June 2009 09:14
Subject: dump /load data conflicts
Hello,

A while ago I submitted a bug for the doctrine plugin included in
symfony, since it is doctrine related and haven't got an answer there,
Im asking here.

This is my model:

Country:
  columns:
    id: { type: string(2), notnull: true, primary:true }
    name: { type: string(250), notnull: true }

The data dumped via doctrine-dump-data look as:

Country:
  Country_CA:
    name: Canada
  Country_MD:
    name: 'Moldova Republic of'
  Country_MG:
    name: Madagascar

doctrine-load-data says:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry for key 1

doctrine only understands the data as follows:

Country:
  canada:
    id: ca
    name: Canada
  masms:
    id: mo
    name: 'Moldova Republic of'
  ssggs:
    id: ma
    name: Madagascar

But I really need to load data dumped with dump-data.

Thanks!!

Pablo


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google