0

I've been able to translate most of the titles but i still have some non-friendly titles on collections (Table of relation)

Title

Aire\AppBundle\Entity\ProjectSupported:000000002d1a645a000000015441bb1f

How could i custom them?

At best it could be the name of the related object ($investor->getName() and $project->getName() for exemple), at worst just a string.

In that case i'm using en entity with 2 relations

/**
 * Owning Side
 *
 * @ORM\ManyToOne(targetEntity="Investor", inversedBy="supportedProject")
 * @ORM\JoinColumn(name="investor_id", referencedColumnName="id")
 **/
private $investor;

/**
 * Owning Side
 *
 * @ORM\ManyToOne(targetEntity="Project", inversedBy="supportedProject")
 * @ORM\JoinColumn(name="project_id", referencedColumnName="id")
 **/
private $project;

Any hints or solutions?

Brieuc
  • 3,994
  • 9
  • 37
  • 70

1 Answers1

1

Sonata is using the __toString method for text representation of objects.

Yann Eugoné
  • 1,311
  • 1
  • 8
  • 17