Skip to content

Instantly share code, notes, and snippets.

@chartjes
Created August 28, 2014 20:13
Show Gist options
  • Save chartjes/ebbb6487a7ae825ecb83 to your computer and use it in GitHub Desktop.
Save chartjes/ebbb6487a7ae825ecb83 to your computer and use it in GitHub Desktop.
Notice: Trying to get property of non-object in /var/www/vhosts/truenorthphp.ca/github/opencfp/vendor/vlucas/spot2/lib/Spot/Relation/HasOne.php on line 70
@vlucas
Copy link

vlucas commented Aug 28, 2014

What entity is this on in the codebase so I can take a look at it and how this relation is defined? I am suspecting that Spot is not able to load a class or entity or something internally, and that is what is causing the error. Once I know what's going on, I can check for that in the relation to throw a friendly/helpful exception.

@chartjes
Copy link
Author

You can look at https://github.com/chartjes/opencfp and look in classes/OpenCFP/Entity to see all the ones I've set up.

It only seems to happen when I have an entry in the User table but no entry in the Speaker table pointing back at User

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment