Maybe you can ask in the propel mailing list?
On Mar 2, 2009, at 11:00 PM, Andrei Dziahel wrote:

> Hi.
>
> I don't remember exactly since I've left Propel some time ago, but  
> AFAIR there's explanation in comments. Just enable them in your  
> propel.ini and rebuild model.
>
> On Mon, Mar 2, 2009 at 07:42, Lawrence Krubner  
> <[email protected]> wrote:
>
> I'm examining some auto-generated code in the Base class of one of  
> my model classes. I'm curious about the line with the $this- 
> >alreadyInSave. It is first set to true, and then later it is set to  
> false. As near as I can see, it is always set to true, and then  
> false. What is the point of this? If PHP was asynchronous, this  
> would make more sense, but PHP is procedural. Does this boolean flag  
> exist for dealing with Ajax requests?
>
>
>        protected function doSave($con)
>        {
>                $affectedRows = 0;
>                if (!$this->alreadyInSave) {
>                        $this->alreadyInSave = true;
>
>
>                        if ($this->isModified()) {
>                                if ($this->isNew()) {
>                                        $pk =  
> NewNewsPeer::doInsert($this, $con);
>                                        $affectedRows +=  1;
>                                        $this->setId($pk);
>                                        $this->setNew(false);
>                                } else {
>                                        $affectedRows +=  
> NewNewsPeer::doUpdate($this, $con);
>                                }
>                                $this->resetModified();
>                        }
>
>                        $this->alreadyInSave = false;
>                }
>                return $affectedRows;
>        }
>
>
>
>
>
> -- 
> With the best regards, Andy.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to