This commit is contained in:
2013-09-08 02:08:27 +02:00
parent 6d715e4090
commit 5cb555e869
15 changed files with 1358 additions and 5 deletions

13
app/models/Comment.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
class Comment extends Eloquent {
protected $table = "comments";
public function autor() {
return $this->belongsTo('User', 'user');
}
public function film() {
return $this->belongsTo('Film', 'film');
}
}