Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: Unscheduled
-
Fix Version/s: Unscheduled
-
Component/s: Doctrine Integration
-
Labels:None
-
Sprint:Sprint 2, Sprint 3
Description
e.g.
- @CiviAPI\Entity("WorldRegion")
- @CiviAPI\Permission()
- @ORM\Table(name="civicrm_worldregion")
- @ORM\Entity
- @Hateoas\Relation("self",
- href = @Hateoas\Route(
- "WorldRegion_get",
- parameters =
{ "id" = "expr(object.getId())" }
,
- absolute = true,
- generator = "civi"
- )
- )
(Note: the name of Hateoas\Route must match the name of the API entity.)
And for each field, @JMS\Type(...)