I started using RB only recently. In my first project, I currently have two tables:
user
emailverificationsThe latter is a child of user. After I find an emailverification record using:
$verification = R::find('emailverifications','code = ?',[$code]);
$verification object is populated but when I use
$verification->user I get
"Trying to get property of non-object"Both tables were generated from RB in fluid mode on an empty mysql db. Using an SQL client, I can see that
emailverifications has a foreign key with user table on user_idWhat am I doing wrong?
Appreciate any help... been going nuts for over two hours searching everywhere....
Thanks