Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
introspection of one-to-one relations
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
  1 message - 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:
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
 
Sandro Santilli  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 14:11
From: Sandro Santilli <sandro.santi...@gmail.com>
Date: Thu, 5 Nov 2009 06:11:49 -0800 (PST)
Local: Thurs 5 Nov 2009 14:11
Subject: introspection of one-to-one relations
Hi all,
I'm trying to create a YAML schema from an existing PostgreSQL
database and wondering why what
I consider to be a on-to-one relation results in asymmetric one-to-one
and one-to-many.

The structure is two tables: A and B where A.id is a primary key and
B.id is a primary key *and*
referencing A.id.

Doctrine lists A as having type:many relation to B and B as having
type:one relation to A.

In reality there's no way A can have multiple B as there's a primary
key on B.id.
This can be derived looking at tables definition.

So my question is: is this misinterpretation a bug or limitation or ?

Unfortunately I've no idea which version of doctrine I'm using. I'm
using it trough symfony 1.2.9.

Hope I've been clear, and thanks all developers for this good cake.

--strk;


    Reply    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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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