Symfony: How to query using Criteria OR

advertisement

I’m looking for way to do a simple query using criteria OR in symfony framework. The official documentation does not covers the sql query criteria for OR statement. After googling for while, there is some reference from the Propel Guide

To perform a simple SQL query with OR criteria is a bit complicated in symfony or i can say in Propel. Here’s the example of how to perform the SQL query for:
Continue reading Symfony: How to query using Criteria OR »

How to remove XP Antivirus Protection?

advertisement

Received a call few days ago from my client saying that their PC now load “XP Antivirus Protection” whenever windows start. I’ve no idea what “XP Antivirus Protection” is at that moment. After googling for while, i found out this “XP Antivirus Protection” is another “AntiSpywareShield” or “virprotect” a like software. Generally speaking this “XP Antivirus Protection” is a fake anti virus software.

xp antivirus protection, xp anti virus protection

So, to remove “XP Antivirus Protection” you need to go thru the steps below:-
Continue reading How to remove XP Antivirus Protection? »

Symfony: Control Model->save() function to perform INSERT or UPDATE

advertisement

In Symfony Framework, Model->save() function is clever enough to determine to use INSERT or UPDATE for the query. But i’ve tried many ways to perform an UPDATE for my record but failed. It keep INSERT new record. Finally i found the solution to control the Model->save() function to perform INSERT or UPDATE.

Just a simple example:-
Assume there is a User table where ID is the primary key, and there is a user record with id = 5, now we perform the code below, it should be smart enough to perform UPDATE but NO!, the code below will INSERT a new record.
Continue reading Symfony: Control Model->save() function to perform INSERT or UPDATE »