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 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 3
Image
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 3
12.00
0.00% covered (danger)
0.00%
0 / 3
 user
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
 proposal
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
 proposalModification
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 Image extends Model
{
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'image';
    protected $primaryKey = 'id';
    public function user()
    {
        return $this->belongsTo('App\User', 'idusers', 'id');
    }
    public function proposal()
    {
        return $this->belongsTo('App\Proposal', 'idproposal', 'id');
    }
    public function proposalModification()
    {
        return $this->belongsTo('App\ProposalModification', 'idproposalModification', 'id');
    }
}