Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 2
Faculty
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
6.00
0.00% covered (danger)
0.00%
0 / 2
 proposal
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
 teams
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Faculty extends Model
{
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'faculty';
    protected $primaryKey = "id";
    /**
    * The proposals associated with this faculty
    *
    */
    public function proposal()
    {
        return $this->belongsToMany('App\Proposal', 'faculty_proposal', 'idfaculty', 'idproposal');
    }
    /**
    * The teams associated with this faculty
    *
    */
    public function teams()
    {
        return $this->belongsToMany('App\Team', 'team_faculty', 'idfaculty', 'idteam');
    }
}