[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
First off, you cannot set In-table foreign keys to NOT NULL. They must allow NULL, or they won't save. This is most likely your problem. I also don't think you've set up your models correctly. This doesn't appear to make sense: Code: doc type | doc count | profile count The same document be associated with multiple profiles for rg and cpf types, but for all others, only associated with a single profile? It might be exactly what you meant, but it appears to be a mistake. You might have meant to have $has_one relationships on rg and cpf, or you might have meant $has_many on other. |
Welcome Guest, Not a member yet? Register Sign In |