Hi, I have two entities OneToOne to each other. One is Transaction, with properties: transactionId, payType amountPaid etc. Other entity is PaymentHistory with properties transactionId, payType, log. The only purpose of this PaymentHistory is only to record IPN report by PayPal etc. If I map these two entities with transactionId, if this is not primary in none of properties, then error or proxy notice. if in both are primary but not auto-incremented, then I first need to call the object from the other entity if I want to add a record to the another entity! So at least one of them should be incremented to work? right? Since the transactionId is returned by PayPal IPN and this is random, so I was thinking, to add an incrementing id in Transaction, that would be map to id of PaymentHistory this id is just primary and not incrementing as it relates to incrementing id of Transaction entity. Then I can easily add a record to Transaction that have a incremented id, then by calling this object in PaymentHistory I can add a record to PaymentHistory.
My question is that: Did I understand correctly that a random data such as TransactionId cannot be used to map between two entities? and at least one of them should be incrementing and the another one should be primary and when adding a record to this entity, first that another entity should be called? -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
