Active Record's Has Many relation problem

3 views
Skip to first unread message

Josune Dallo

unread,
Jul 6, 2011, 7:36:35 AM7/6/11
to castle-pro...@googlegroups.com

Hi, I am programming a MVC 3 app with Active Record. My problem is, I have a relation of 1-->N
( table A has many registers in table B, one register of table B belongs
to one register of table A.) The problem is, that it exists one register
in table B, that has no correspondence in table A. And so when Active
Record tries to do the correspondence, it fails. I have added the
Notfounbehaviour= ignore in the HasMany relation and BelongsTo, and the
NotNull= false in the BelongsOne, but even with it id doesn't work, can
you help me please? Thankyou.
Reply all
Reply to author
Forward
0 new messages