/** * @param \AppAnest\Model\contract $model */ public function posInsert(\AppAnest\Model\contract &$model) { $id = $model->getId(); $additive = new \AppAnest\Coach\additive(); $additiveModel = $additive->getStore()->getModel(); $additiveModel->setContractid($id); $additiveModel->setAdditivenumber('000'); $additiveModel->getSubmit()->setRawValue('contractid', $id); $additiveModel->getSubmit()->setRowValue('contractid', $id); $statement = $this->getProxy()->sqlInsert($additiveModel); $statement->execute(); }
<?php require_once '../../vendor/autoload.php'; $object = new \AppAnest\Coach\additive(); echo $object->callAction();