D'oh! I always have a tendency to over complicate things! Thanks, Gabriel!
On Mon, May 24, 2010 at 6:45 PM, pghoratiu pghora...@gmail.com wrote:
You could do it either at object-save() or better at object-set*()
something like:
public function setDescription($value)
{
Using setDescription on model level probably doesn't work for the form
since form data is loaded into the object by calling -fromArray()
which does not necessarily call mutators as far as Doctrine is
concerned (not sure what Propel does here).
Do you mean that it won't work if I use the model
The model class works as well, but some people prefer to leave the
data cleansing to the forms and use the model layer purely for storage/
retrieval. Matter of preference.
Daniel
On May 25, 6:27 am, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
Using setDescription on model level
You could do it either at object-save() or better at object-set*()
something like:
public function setDescription($value)
{
parent::setDescription(strip_tags($value));
}
gabriel
On May 24, 11:56 pm, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
Hi all,
I need to call