Which is excellent between express and SQL Query

Permalink
Because of deleting express doesn't delete sql records, which is excellent between express and SQL Query or Is it necessary both?

Eg. For delete
Express::deleteEntry(1);


$rs = $dbl->Execute('DELETE FROM StudentExpressSearchIndexAttributes WHERE exEntryID=?',1);

 
mnakalay replied on at Permalink Reply
mnakalay
If you used Express to create your entries, I strongly suggest you do NOT use pure SQL to delete them. Express uses a system called Doctrine in the background and Doctrine does a lot of things under the hood. Bypassing Doctrine after it was used for creating entries, you might break things. Notice I said "might" so it is not certain but still a very strong possibility. Unless you really know what you're doing.