When executing a schedule job, if there is a BAO object defined in the hooks/extension, executing cron job result in Fatal Error
PHP Fatal error: Class name must be a valid object or a string in /home/****/public_html/administrator/components/com_civicrm/civicrm/Civi/API/SelectQuery.php on line 101
For eg - Define a hook_civicrm_entityTypes() hook in an extension which needs to be used for a schedule job.When this job is executed from cron.php from the url - the error arises. More details in the PR.
Eg extension that is affected - https://github.com/eileenmcnaughton/nz.co.fuzion.accountsync.