You can override the hydrate() or select() or whatever method you want.  In
your project directory, go to lib/model.  In there you can override any base
class method you want-- the base classes are in lib/model/om.  More
information can be found in the symfony book:
http://www.symfony-project.org/book/1_0/08-Inside-the-Model-Layer#Base%20and%20Custom%20Classes
.

My apologies if I'm not understanding your question correctly.

Ryan


On Sun, Apr 6, 2008 at 5:01 PM, Chris <[EMAIL PROTECTED]> wrote:

>
> Thanks for the advice, I was actually leaning towards looking into
> behaviors a little more.  But basically I need to do more with the
> data when it is actually first loaded into the object, not upon the
> save.  Seems like everything I have found thus far deals with the
> object later in the life cycle like the save etc. and not when the
> object is first initialized.  All I'm looking for is a callback that
> can be called when the object is first initialized by using the
> hydrate function etc.
>
> Thanks,
> Chris
>
> On Apr 6, 11:43 am, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote:
> > On Sun, Apr 6, 2008 at 7:31 PM, Chris <[EMAIL PROTECTED]> wrote:
> > >  I'm working on a project right now where I need to run some checks on
> > >  the model data when it is initialized, I figured symfony/propel would
> > >  provide some sort of callback function but I haven't found any
> >
> > What do you mean by checks, and initialization? If you just want to
> > check some values before saving an object, you can override the save()
> > method or if you need more you sould give a look at behaviors:
> http://redotheweb.com/2007/09/02/understanding-behaviors/
> >
> > If you do need data validation at model level, a plugin exists that
> > uses the symfony 1.0 validation system:
> http://trac.symfony-project.com/wiki/sfPropelValidatePlugin
> >
> > HTH
> >
> > ++
> >
> > --
> > Nicolas Perriaulthttp://prendreuncafe.com/blog
> > GSM: 06.60.92.08.67
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to