Il manquait quelques fichiers dans Git

This commit is contained in:
2024-01-18 12:02:32 +01:00
parent 485580e0b2
commit 15053f58f2
194 changed files with 63120 additions and 9403 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace CreditNote\Model;
use CreditNote\Model\Base\CreditNoteDetail as BaseCreditNoteDetail;
use Propel\Runtime\Exception\PropelException;
use Thelia\Model\OrderProduct;
class CreditNoteDetail extends BaseCreditNoteDetail
{
use \CreditNote\Model\Tools\ModelEventDispatcherTrait;
/**
* Declares an association between this object and a ChildOrderProduct object.
*
* @param OrderProduct $v
* @return \CreditNote\Model\CreditNoteDetail The current object (for fluent API support)
* @throws PropelException
*/
public function setOrderProduct(OrderProduct $v = null)
{
if ($v === null) {
$this->setOrderProductId(null);
} else {
$this->setOrderProductId($v->getId());
}
$this->aOrderProduct = $v;
// Add binding for other direction of this n:n relationship.
// If this object has already been added to the ChildCustomer object, it will not be re-added.
if (method_exists($v, 'addCreditNote') && $v !== null) {
$v->addCreditNote($this);
}
return $this;
}
}