| Path : /var/www/html/sistemas/saplxi/app/Models/ |
| Current File : /var/www/html/sistemas/saplxi/app/Models/CddPartidosLxi.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CddPartidosLxi extends Model
{
use HasFactory;
protected $table = "cdd_partidos_lxi";
protected $primaryKey = "id";
public function diputados()
{
return $this->hasMany(CddDiputadosLxi::class, "id_partido");
}
public function partidos()
{
return $this->belongsTo(CddPartidosLx::class, "id_partido");
}
}