This project is read-only.

Incompatibility latest odataphpprod and doctrine2


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)
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?


drdamour wrote Apr 24, 2013 at 11: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