This topic contains 2 replies, has 2 voices, and was last updated by Grégory PLANCHAT 9 years, 3 months ago.
- Topic
Hello,
I’m currently integrating OroCRM in my customer experience tools architecture by using web services, but i’m facing a problem I can’t understand.
My application is using Guzzle for HTTP interactions, but the problem doesn’t seems to come from here as I also tried using raw PHP streams and faced the exact same error.
123456789101112131415161718192021222324252627<?phpuse GuzzleHttp\Client;use Devster\GuzzleHttp\Subscriber\WsseAuth;$client = new Client(['base_url' => 'http://localhost:8081/app_dev.php/']);$wsse = new WsseAuth('user', 'password');$wsse->attach($client);try {$response = $client->post('api/rest/latest/account.json', ['body' => ['name' => 'foo@example.com','createdAt' => date('c'),'updatedAt' => date('c'),'owner' => [],'contacts' => [],'defaultContact' => null,'organization' => 'Foo']]);var_dump($response->getBody()->getContents());} catch (\GuzzleHttp\Exception\RequestException $e) {var_dump($e->getMessage(), $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null);}Which returns :
Server error response [url] http://localhost:8081/app_dev.php/api/rest/latest/account.json [status code] 500 [reason phrase] Internal Server Error1{"status":"error","status_code":500,"status_text":"Internal Server Error","current_content":"","message":"[Semantical Error] The annotation \"@Enum\" in property Doctrine\\ORM\\Mapping\\GeneratedValue::$strategy was never imported. Did you maybe forget to add a \"use\" statement for this annotation?"}I found some similar issues on other forums, but none shown me any clear solution :
https://github.com/schmittjoh/JMSSerializerBundle/issues/380
https://github.com/pink-tie/JMSSerializerServiceProvider/issues/3
http://stackoverflow.com/questions/17583237/doctrine-onetomany-relationship-errorWhat am I doing wrong here?
shouldn’t be the error messages more explicit?
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.