samedi 26 décembre 2015

How to prevent creating the instance of the class with specific IDs

I have 2 Models: Post, User. The User cannot like his post, so how can i prevent creating the instance of the Model Like (user_id: creator, post_id:created by the "creator") ?

Aucun commentaire:

Enregistrer un commentaire