Hello, I bumped into an error today when I was trying to load some fixtures data. I kind of know what the problem is, but I don't know the solution, and google doesn't says anything useful.
Here are the data that you will need: schema file: { ... } PageContent: actAs: { Timestampable: ~ } columns: parial: { type: boolean, notnull: true, default: false} page_id: { type: integer, notnull: true } item_id: { type: integer } partial_id: { type: integer } relations: Page: { onDelete: CASCADE, local: page_id, foreign: id, foreignAlias: Page } Item: { onDelete: CASCADE, local: item_id, foreign: id, foreignAlias: Item } Partial: { onDelete: CASCADE, local: partial_id, foreign: id, foreignAlias: Partial } { ... } And the fixture is: { ... } PageContent: homepage_header: partial: true Page: homepage item_id: null Partial: header { ... } The error is: Couldn't call Doctrine_Core::set(), second argument should be an instance of Doctrine_Record or Doctrine_Null when setting one-to-one references. I've checked the rest of the fixture, and the problems appear only when I insert a PageContent item; Of course the problem is that Item or Partial has to be null (that's my condition) but There seems no way to set either of them to null. I've tried `Item` instead of `item_id` or `~` instead of `null` and their combinations, and none have worked. How can I set that item_id to null ? I can post the rest of the schema if that's relevant in anyway (even if I don't believe so). -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en