old models
This commit is contained in:
24
src/old/Venta/PromocionVenta.php
Normal file
24
src/old/Venta/PromocionVenta.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace Incoviba\old\Venta;
|
||||
|
||||
use Incoviba\Common\Alias\OldModel as Model;
|
||||
|
||||
/**
|
||||
*
|
||||
* @property Promocion promocion
|
||||
* @property Venta venta
|
||||
* @property double valor
|
||||
*
|
||||
*/
|
||||
class PromocionVenta extends Model
|
||||
{
|
||||
public function promocion()
|
||||
{
|
||||
return $this->belongsTo(Promocion::class, 'promocion')->findOne();
|
||||
}
|
||||
public function venta()
|
||||
{
|
||||
return $this->belongsTo(Venta::class, 'venta')->findOne();
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user