2011/4/24 ornicar <[email protected]>: > I would not write > $path = realpath(__DIR__.'/../../../../web/uploads'); > > in a model, for obvious reusability and maintainability reasons. > The model can at most know the path relative to the document root or uploads > dir. > But absolute file path calculation should be done in a configurable service.
You're absolutely right. I was trying to keep the example simple. Maybe we can write a generic Doctrine2 listener that takes care of the above job. Volunteers? Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
