#1370 new
Kevin Watt

validation on belongs_to if given an unsaved target returns false with no error message

Reported by Kevin Watt | July 19th, 2010 @ 10:46 PM

Topic
belongs_to :user

User
property :name, String, :required => true

DataMapper.finalize

u=User.new
Topic.new :user => u
Topic.save # => false
Topic.errors # => empty

.errors should include 'user_id' is required, or something along those lines.

No comments found

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

Pages