Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing object references #10

Open
Drachenkaetzchen opened this issue Jun 12, 2015 · 0 comments
Open

Passing object references #10

Drachenkaetzchen opened this issue Jun 12, 2015 · 0 comments

Comments

@Drachenkaetzchen
Copy link

Hi,

I have setup the hydra demo application from https://github.com/lanthaler/sfHydraDemoApp. I have updated Doctrine to 2.4.7 as there's an issue with PHP 5.6.

I have successfully created a new user in the database. Now I'm trying to create a new issue in the demo app, and I'm trying to figure out what to pass as the parameter "raisedBy". I tried the numeric ID of the user and "/~felicitus/hydrademo/web/app_dev.php/api/users/1" - both result in the following error:

{
  "@context": "/~felicitus/hydrademo/web/app_dev.php/api/contexts/Error",
  "@type": "Error",
  "hydra:title": "An error occurred",
  "hydra:description": "Warning: spl_object_hash() expects parameter 1 to be object, string given",
  "trace": [
    {
      "function": "handleError",
      "class": "Symfony\\Component\\Debug\\ErrorHandler",
      "type": "->",
      "args": [
        2,
        "spl_object_hash() expects parameter 1 to be object, string given",
        "/home/felicitus/public_html/hydrademo/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php",
        1389,
        {
          "entity": "/~felicitus/hydrademo/web/app_dev.php/api/users/1",
          "assume": 2
        }

Any clue what's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant