array id_article newLike- id_article id_tag newLike- id_tag id_user ne

1
2
3
array('id_article'=>$newLike->id_article , 'id_tag'=>$newLike->id_tag , 'id_user'=>$newLike->id_user );
if(count($likes)==0)
$newLike->save();