Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

ParanoidBoolean causes issues with belongs_to Relationships #52

@pnomolos

Description

@pnomolos

class Car
include DataMapper::Resource
has n, :wheels
property :id, Serial
property :deleted, ParanoidBoolean, :default => false, :lazy => false
end

If :lazy is set to true, Wheel.car will return nil even if a record exists (it even queries the DB successfully).

See https://gist.github.com/1511964 for a fuller use-case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions