I am trying to find out if there is such a record in the database before I start and save the record. I searched googled and found that it looked like it should work, but unfortunately not. I am new to cakephp and can "figure out the right request".
$this->Tape->recursive = -1;
$tapeexists = $this->Tape->find('all', array('condition'=>array('Tape.name LIKE'=>'blondie%')));
$this->set('output', $tapeexists);
If I print_r () the results in the view, I see that it just goes and gets all the results in this table, none of which has a name even remotely resembling "blondie"!
source
share