Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion dump /load data conflicts

View Parsed - Show only message text

Received: by 10.103.243.7 with SMTP id v7mr66619mur.27.1246090491371;
        Sat, 27 Jun 2009 01:14:51 -0700 (PDT)
Return-Path: <ganda...@gmail.com>
Received: from mail-bw0-f222.google.com (mail-bw0-f222.google.com [209.85.218.222])
        by gmr-mx.google.com with ESMTP id 13si468358bwz.7.2009.06.27.01.14.50;
        Sat, 27 Jun 2009 01:14:50 -0700 (PDT)
Received-SPF: pass (google.com: domain of ganda...@gmail.com designates 209.85.218.222 as permitted sender) client-ip=209.85.218.222;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ganda...@gmail.com designates 209.85.218.222 as permitted sender) smtp.mail=ganda...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by bwz22 with SMTP id 22so1694915bwz.5
        for <doctrine-dev@googlegroups.com>; Sat, 27 Jun 2009 01:14:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:date:message-id:subject
         :from:to:content-type:content-transfer-encoding;
        bh=JWW5GfGzbsV7ju2C+wcSd441kYI4jsJb9FP1OicAcmQ=;
        b=nbnq6queoP3EYgRB5v/JPoROnUdvtJWjipXHMbTykal/9hIkSSYb7bwMY/ErqYiA6b
         3zuwAqUfo/nJ/5TXP05drd/xuQnlkWo8LqJgN9tSvmot/f9sIn6ytVk/w6r995UjIr0S
         SdQjKqVguqUL0sdIIPjbr6SjwWicyle4vZjns=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        b=rDFpLMPLNPYQ+Lof/isIjmWTtOAiVCMKIJZbol1fOGfN+Q8IvUhkMlvpxvFkPsBj8T
         kuaL25uQBQyM3JtAVDXW9IWAKZaiWSEVn7LYD3R4nGBWQNipZAaEKN7eyNpPU8tgSJUU
         GUY1/2YkldDnZyfu9EEQFWCq17i+GVOTnOUJA=
MIME-Version: 1.0
Received: by 10.103.8.3 with SMTP id l3mr2755760mui.116.1246090490216; Sat, 27 
	Jun 2009 01:14:50 -0700 (PDT)
Date: Sat, 27 Jun 2009 03:14:50 -0500
Message-ID: <b84657bb0906270114m20113396oa84644307e6b9d9f@mail.gmail.com>
Subject: dump /load data conflicts
From: Gandalf <ganda...@gmail.com>
To: doctrine-dev@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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

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