Vote.php 215 B

12345678910111213
  1. <?php
  2. class Vote extends Eloquent {
  3. protected $table = "votes";
  4. public function oFilm() {
  5. return $this->belongsTo('Film', 'film');
  6. }
  7. public function voter() {
  8. return $this->belongsTo('User', 'user');
  9. }
  10. }