api-platform / api-platform/core
Doctrine Orm Search Filter Error
未關閉
doctrine
filters
- 主要語言
- PHP
- 星號
- 2.6k
- 分支
- 980
- 平均合併
- 2 天 5 小時
- 30 天內合併 PR
- 48
描述
When using the SearchFilter for an exact match on an associated object the search fails.
"hydra:description": "Can't get a way to read the property \"id\" in class \"App\\Entity\\DirectDerm\\Organization\".",
Organization has organizationId as it's ORM\id
#[Groups([Organization::GROUP_READ])]
#[ORM\Column(name: 'organizationId')]
#[ORM\GeneratedValue]
#[ORM\Id]
private ?int $organizationId = null;
api-platform\core\src\Doctrine\Common\Filter\SearchFilterTrait.php line 127 is hardcoded to look for 'id'
貢獻指南
評估
這個 Issue 還沒有評估資料。