Accessing Symfony2 global parameter in entity class
===

I have a value stored in my parameters.ini file, and I need to access it during the prepersist method of my model.

Normally I use `$this->container->getParameter('value');`, but the container is not available in the entity.

Is there a way to get parameters within an entity class?