#861 ✓resolved
Alex Arnell

paranoid properties are ignored when using has many through relationships

Reported by Alex Arnell | May 22nd, 2009 @ 01:18 PM | in 1.0.0

Given

class Photo
  include DataMapper::Resource

  has n, :taggings
  has n, :tags, :through => :taggings
end

class Tag
  include DataMapper::Resource

  has n, :taggings
  has n, :photos, :through => :taggings

end

class Tagging
  include DataMapper::Resource

  property :deleted_at, ParanoidDateTime

  belongs_to :tag
  belongs_to :photo
end

After deleting a Tagging

photo.tags

will include the Tag for which the Tagging was deleted.

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

Attachments

Pages