Can you create a ticket for this? Thanks, Jon
On Fri, Dec 19, 2008 at 6:12 PM, juro <[email protected]> wrote: > > Hi, > I am migrating from 1.0/1.1 to 1.2 and have a problem with Doctrine's > validation errors. This is part of my schema: > > Invoice: > actAs: [Timestampable, Usertraceable] > columns: > id: > type: integer(4) > primary: true > autoincrement: true > number: > type: string(20) > notnull: true > unique: true > name: > type: string(100) > address1: > type: string(100) > address2: > type: string(100) > zip: > type: string(5) > city: > type: string(50) > vat: > type: float > notnull: true > default: 14 > payment_id: > type: integer(4) > paid_on: > type: timestamp > access_id: > type: integer(4) > relations: > PaymentType: > local: payment_id > foreign: id > Revenue: > local: id > foreign: invoice_id > type: many > Access: > local: access_id > foreign: id > > Now when I run this code: > > $invoice = new Invoice(); > $invoice->setName($this->getCustomer()->getFullname()); > $invoice->setAccess($this); > $invoice->save(); > > I get this error: > > Validation error in class PaymentType > > but seeing that there is no PaymentType - which is correct, as this > defines how the invoice was paid and is set at a later stage. > > Any ideas? > > juro > > > -- Jonathan H. Wage Open Source Software Developer & Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
