updates
This commit is contained in:
13
app/models/Comment.php
Normal file
13
app/models/Comment.php
Normal 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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user