Hi Stan,

Please take a look at https://github.com/simplethings/EntityAudit

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 11 March 2014 22:19, Stan Lemon <[email protected]> wrote:

> Hey Marco,
> Thanks for the quick reply. Are you aware able to point me at an example
> of scheduling insert operations from within postPersist?
>
> Thanks,
> Stan
>
>
> On Tuesday, March 11, 2014 5:13:24 PM UTC-4, Marco Pivetta wrote:
>
>> Hey Stan,
>>
>> You will likely need to handle this sort of limit by using `postPersist`
>> and manually scheduling insert operations for your log entries.
>>
>> Cheers,
>>
>> Marco Pivetta
>>
>> http://twitter.com/Ocramius
>>
>> http://ocramius.github.com/
>>
>>
>> On 11 March 2014 22:02, Stan Lemon <[email protected]> wrote:
>>
>>>  Hello,
>>> I'm trying to save what is essentially a Log object in an onFlush event
>>> listener.  The log object is used to reference various objects in my system
>>> and has fields like 'object_type' and 'object_id'. So I essentially want to
>>> Log->setObjectId($entity->getId()); This works great if the object is
>>> already persisted, but on the initial save I don't have an id.  I'm
>>> wondering if there is a way to get a proxy of what the id will be or
>>> something that I can do to make this possible.
>>>
>>> Thanks,
>>> Stan
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "doctrine-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/doctrine-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to