i getting errors if one of my conditions is:
$conditions[] = array("PublicationNumeration.publication_numerations_published_date" => '2006-01-01' );
what is wrong with this condition?
but everything works ok with
$conditions[] = array("PublicationNumeration.publication_numerations_published_date" => '2006' );
... but that's not all i want/need.
what i'm doing wrong?
UPDATED:
next one works ok:
$mydate = '2007/01/01';
$conditions[] = array("PublicationNumeration.publication_numerations_published_date LIKE " => date('Y-m-d' , strtotime( $mydate ) ) );
// create sql `PublicationNumeration`.`publication_numerations_published_date` LIKE '2007-01-01'
but next one creates an error:
$mydate = $this->params['named']['searchPublishedSince'].'/01/01'; // searchPublishedSince is defined in url
$conditions[] = array("PublicationNumeration.publication_numerations_published_date LIKE " => date('Y-m-d' , strtotime( $mydate ) ) );
please, what i'm doing wrong?!