2018-12-29 14:24:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\DDT\Components;
|
|
|
|
|
|
|
|
use Common\Components\Article;
|
|
|
|
use Modules\Articoli\Articolo as Original;
|
|
|
|
use Modules\DDT\DDT;
|
|
|
|
|
|
|
|
class Articolo extends Article
|
|
|
|
{
|
|
|
|
use RelationTrait;
|
|
|
|
|
|
|
|
protected $table = 'dt_righe_ddt';
|
2019-02-14 17:49:58 +01:00
|
|
|
protected $serialRowID = 'ddt';
|
2018-12-29 14:24:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Crea un nuovo articolo collegato ad una ddt.
|
|
|
|
*
|
|
|
|
* @return self
|
|
|
|
*/
|
2019-01-02 14:15:16 +01:00
|
|
|
public static function build(DDT $ddt, Original $articolo)
|
2018-12-29 14:24:27 +01:00
|
|
|
{
|
2019-01-02 14:15:16 +01:00
|
|
|
$model = parent::build($ddt, $articolo);
|
2018-12-29 14:24:27 +01:00
|
|
|
|
|
|
|
return $model;
|
|
|
|
}
|
|
|
|
}
|