Beispiel #1
0
 /**
  * Get model datasets
  *
  * @param \XLite\Model\AEntity $model Model
  *
  * @return array
  */
 protected function getModelDatasets(\XLite\Model\AEntity $model)
 {
     $datasets = $this->distributeDatasetModel(parent::getModelDatasets($model), 'detail', $model->getDetails());
     $datasets = $this->distributeDatasetModel($datasets, 'item', $model->getItems());
     $datasets = $this->distributeDatasetModel($datasets, 'paymentTransaction', $model->getPaymentTransactions());
     return $datasets;
 }
Beispiel #2
0
 /**
  * Get model datasets
  *
  * @param \XLite\Model\AEntity $model Model
  *
  * @return array
  */
 protected function getModelDatasets(\XLite\Model\AEntity $model)
 {
     return $this->distributeDatasetModel(parent::getModelDatasets($model), 'address', $model->getAddresses());
 }