Error when mapped entity is not a resource
See original GitHub issueDo 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:
- Created 7 years ago
- Comments:11 (7 by maintainers)
Ofc
@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?