title: JMS Serializer: Dynamically change the name of a virtual property at run time
body: <p>I use JMS Serializer Bundle and Symfony2. I am using VirtualProperties. currently, I set the name of a property using the SerializedName annotation.</p>
  
  <pre><code> /**
   * @JMS\VirtualProperty()
   * @JMS\SerializedName("SOME_NAME")
   */
  public function getSomething()
  {
      return $this-&gt;something
  }
  </code></pre>
  
  <p>Is it possible to set the serialized name dynamically inside the function? Or is it possible to dynamically influence the name using Post/Pre serialization events? </p>
  
  <p>Thanks! </p>