I've noticed something odd and I can't find anything in the documentation.
I'm writing a plugin and when I use ElementCriteriaModel
to find an existing entry like so:
$criteria = craft()->elements->getCriteria(ElementType::Entry);
$criteria->section = 'entryHandle';
$criteria->title = 'The Title & Stuff';
$existingEntry = $criteria->first();
The entry is not found, and I believe it's because of the punctuation. The entry is clearly in the craft_content
table (with the exact title including punctuation). Is there some sort of processing I need to do before setting the title criterion?
Thanks!