Limpieza e intento de modernizar informe de ventas
This commit is contained in:
26
src/old/Common/Provincia.php
Normal file
26
src/old/Common/Provincia.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Incoviba\old\Common;
|
||||
|
||||
use App\Alias\OldModel as Model;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
*
|
||||
* @property int id
|
||||
* @property string descripcion
|
||||
* @property Region region
|
||||
*
|
||||
*/
|
||||
class Provincia extends Model
|
||||
{
|
||||
public function region()
|
||||
{
|
||||
return $this->belongsTo(Region::class, 'region')->findOne();
|
||||
}
|
||||
public function comunas()
|
||||
{
|
||||
return $this->hasMany(Comuna::class, 'provincia')->findMany();
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user