#914 ✓resolved

dm-is-versioned with discriminator data types

Reported by ash.gti | June 20th, 2009 @ 01:26 PM | in 0.10.0

When you add a discriminator data type to any model that 'is-vereioned' then it will result in an error. Simply add a property to the spec Story class included in the dm-is-versioned class and run the spec you'll get the errors I am talking about. They will look something like:

DataObjects::IntegrityError in 'DataMapper::Is::Versioned#save (with a dirty existing resource) should create a versioned copy'
PRIMARY KEY must be unique

I am trying to figure out why this happens, but I don't think this is intended. If is-versioned is not supposed to work with discriminator data types thats fine but it should be specified in the documentation somewhere.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket


Referenced by