public function spam($entrada,$numero){
$spam=array('Muy bueno','Estupenda entrada','Eres un crack','Lo mejor que he leído','Ole y ole');
for($i=0;$i<$numero;$i++){
$com=$spam[rand(0,count($spam)-1)];
$new['asunto']=$com;
$new['texto']=$com;
$new['entrada_id']=$entrada;
$this->Comentario->create();
$this->Comentario->save($new);
}
return $this->redirect(array('controller'=>'Entradas','action' => 'view',$entrada));
}