Skip to content

Instantly share code, notes, and snippets.

@Kcko

Kcko/dataTypes.php

Created Feb 16, 2021
Embed
What would you like to do?
<?php
/**
* TEST DATOVYCH TYPU
*/
call_user_func(function() {
// krabice
$krabiceActiveRow = $this->connection->table('eshop_item')->where('id', 1467)->fetch();
$krabiceDataset = $krabiceActiveRow->getDataset();
$pv = $krabiceDataset->getPrimaryVariant();
_bardump($krabiceActiveRow);
});
call_user_func(function() {
// varianta
$varianta = $this->connection->table('eshop_item_variant')->where('id', 5411)->fetch();
$krabiceActiveRow = $varianta->eshop_item;
$krabiceDataset = $krabiceActiveRow->getDataset();
$pv = $krabiceDataset->getPrimaryVariant(); // nerfunkcni viz http://bit.ly/2zzn4NI
_bardump($krabiceActiveRow);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment