Stop logging of certain database updates
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Kye Etherton <ad... @sugarcubeproductions.co.uk>
Date: Fri, 1 Jun 2012 12:30:11 -0700 (PDT)
Local: Fri, Jun 1 2012 3:30 pm
Subject: Stop logging of certain database updates
I have a query which runs on every page load and updates a row in the
database. For some annoying reason it's logging them all.
How can I get it to stop logging them on this single query?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Stéphane <stephane.er... @gmail.com>
Date: Sat, 2 Jun 2012 16:55:49 +0200
Local: Sat, Jun 2 2012 10:55 am
Subject: Re: [diem-users] Stop logging of certain database updates
Which logging ?
dmDoctrineRecord log ?
If so, look at the ->notify() method of dmDoctrineRecord.
Overload this method within your model class.
Regards,
On Fri, Jun 1, 2012 at 9:30 PM, Kye Etherton <
ad
... @sugarcubeproductions.co.uk> wrote:
> I have a query which runs on every page load and updates a row in the
> database. For some annoying reason it's logging them all.
> How can I get it to stop logging them on this single query?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Kye Etherton <ad... @sugarcubeproductions.co.uk>
Date: Sat, 02 Jun 2012 16:02:45 +0100
Local: Sat, Jun 2 2012 11:02 am
Subject: Re: [diem-users] Stop logging of certain database updates
Yea, I've had to write raw SQL to stop the object editing from appearing on every page load.
Yours Sincerely
Kye Etherton
Managing Director
Sugar Cube Productions Ltd
Company Registered in England and Wales, registration number: 07856043
On 02/06/12 15:55, Stéphane wrote:
> Which logging ?
> dmDoctrineRecord log ?
> If so, look at the ->notify() method of dmDoctrineRecord.
> Overload this method within your model class.
> Regards,
> On Fri, Jun 1, 2012 at 9:30 PM, Kye Etherton > <ad... @sugarcubeproductions.co.uk > <mailto:ad... @sugarcubeproductions.co.uk>> wrote:
> I have a query which runs on every page load and updates a row in the
> database. For some annoying reason it's logging them all.
> How can I get it to stop logging them on this single query?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Stéphane <stephane.er... @gmail.com>
Date: Sun, 3 Jun 2012 01:33:25 +0200
Local: Sat, Jun 2 2012 7:33 pm
Subject: Re: [diem-users] Stop logging of certain database updates
I think this is the best solution anyway.
:)
On Sat, Jun 2, 2012 at 5:02 PM, Kye Etherton <
ad
... @sugarcubeproductions.co.uk> wrote:
> Yea, I've had to write raw SQL to stop the object editing from appearing
> on every page load.
> Yours Sincerely
> Kye Etherton
> Managing Director
> Sugar Cube Productions Ltd
> Company Registered in England and Wales, registration number: 07856043
> On 02/06/12 15:55, Stéphane wrote:
> Which logging ?
> dmDoctrineRecord log ?
> If so, look at the ->notify() method of dmDoctrineRecord.
> Overload this method within your model class.
> Regards,
> On Fri, Jun 1, 2012 at 9:30 PM, Kye Etherton <
> ad... @sugarcubeproductions.co.uk> wrote:
>> I have a query which runs on every page load and updates a row in the
>> database. For some annoying reason it's logging them all.
>> How can I get it to stop logging them on this single query?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Michal Filip <improvisio.softw... @gmail.com>
Date: Fri, 3 Aug 2012 01:41:02 -0700 (PDT)
Local: Fri, Aug 3 2012 4:41 am
Subject: Re: Stop logging of certain database updates
Have a look at the following code - might be helpful:
<code>
class xyzPluginConfiguration extends sfPluginConfiguration{
public function initialize(){
$this->dispatcher->connect('dm.record.modification', array($this, 'listenToRecordModificationEvent'));
}
//suppress video hits update flooding
public function listenToRecordModificationEvent(sfEvent $e) {
if($e['type'] == 'update'
&& ($e->getSubject() instanceof SmVideo
|| $e->getSubject() instanceof SmContestItem))
$e->setProcessed(true);
}
}
</code>
Dne pátek, 1. června 2012 21:30:11 UTC+2 Kye Etherton napsal(a):
> I have a query which runs on every page load and updates a row in the > database. For some annoying reason it's logging them all.
> How can I get it to stop logging them on this single query?
You must
Sign in before you can post messages.
You do not have the permission required to post.