[eluser]OverZealous[/eluser]
[quote author="Jinkusu" date="1253924211"]I know its a many to many relationship, but that's the only thing that seems to work, because the One-Many relationship isn't working. When i try the code yo posted the before the guardian_id field doesn't populate at all and therefore there is no relationship, you can try it yourself.[/quote]
Well, I don't need to try it myself. I use code like this all the time. You are doing something wrong.
- Did you save the 'student' object first?
- Have you looked through the troubleshooting section in the docs?
- Have you looked at the queries being generated to see what's happening?
- Have you double-checked the names of your fields?