Symfony, how get current user (FOS) in entity, unused __construct()? : <p>I have an entity <code>Book</code>. Title of this <code>Book</code> is stored in different languages ​​(the entity <code>Book</code> is associated with <code>BookTranslates</code> as <code>OneToMane</code>).</p>

<p>The entity <code>Book</code> is used as a form field in several places (like select). For this, I need to set <code>__toString ()</code> for the <code>Book</code> entity, which will return the title of the <code>Book</code> in the user's language.</p>

<p>I tried to get the user inside the entity by passing <code>TokenStorageInterface</code> in the <code>__construct ()</code> method of the <code>Book</code> class, but the doctrine never calls the <code>__construct ()</code> method in that case.</p>

<p>Brief statement of the problem:
<code>__toString ()</code> in entity must return a field of one of the related entities. Which specifically related entities - depends on the current user. How to implement it correctly?</p>
