question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when mapped entity is not a resource

See original GitHub issue

Do you change something recently about mapped entity ?

After updating composer there are errors when mapped entities are not resource

Ex: { "@context": "/contexts/Error", "@type": "Error", "hydra:title": "An error occurred", "hydra:description": "Resource \"AppBundle\\Entity\\Catalog\\Asset\" not found." }

Mapping /** * @ORM\ManyToMany(targetEntity="Asset", fetch="EAGER") * @ORM\JoinTable(name="article_asset", * joinColumns={@ORM\JoinColumn(name="article_code", referencedColumnName="code")}, * inverseJoinColumns={@ORM\JoinColumn(name="asset_id", referencedColumnName="id")} * ) * @Groups({"product", "article", "operation_detail", "cart", "wish_list_detail"}) */ private $articleAssets;

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
soyukacommented, Nov 22, 2016

Ofc

0reactions
dunglascommented, Nov 22, 2016

@soyuka we should join only if Doctrine knows $resourceClass (in the other case, it can be a VO or anything else). Can you provide a hotfix before the stable release?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Mapping (RESOURCE) not found : HibernateExposed ...
It is database connection issue. Basically hibernate can't connect to your db because of either wrong db url, username, password or missing jars ......
Read more >
Hibernate ORM 5.4.33.Final User Guide - Red Hat on GitHub
Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types),...
Read more >
Spring Data REST Reference Guide
A 404 return code indicates no query method resources are available. 4.6. The Query Method Resource. The query method resource runs the exposed ......
Read more >
Troubleshoot dual-write issues in finance and operations apps
This article provides troubleshooting information that can help you fix issues with the Dual-write module in finance and operations apps.
Read more >
Common Hibernate Exceptions - Baeldung
These exceptions mostly extend from HibernateException. · most of these are unrecoverable. · Such mapping errors generate exceptions. · A problem ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found