1
Vote

Incompatibility latest odataphpprod and doctrine2

description

Given the following setup:
And the followings steps:
  • Followed the docs to generate a service (call it myservice)
  • setup apache according to odataphpprod docs (note: running on OS X, PHP5.3.15)
Output:
Attempt to access the service produces the following error log (some parts ##redacted##):
PHP Fatal error: Class myserviceQueryProvider contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ODataProducer\Providers\Query\IDataServiceQueryProvider2::canApplyQueryOptions) in ##BASEPATH##/odatamysqlphpconnect/ODataConnectorForMySQL/OutputFiles/myservice/myserviceQueryProvider.php on line 2133

Did I implement something incorrectly, am I using incompatible versions of dependencies, or is PHP5.4 required on OS X (as the docs state for Linux) in order to resolve this?

comments

drdamour wrote Apr 24, 2013 at 10:29 PM

i had similar problem, seems to just be a messed up implementation. I added to my provider this method:
        //Manually added
        public function canApplyQueryOptions()
        {
            return true;
        }
and was able to proceed