How do i create this SQL statement with cakephp 3;
delete FROM bookmarks WHERE substring(url , 4) != 'http'
Ive tried;
$this->Bookmark->deleteAll('substring(Bookmark.url,4) !=' => 'http',false);
Cakephp doesnt like the Substring or LEFT() function