Skip to content

Instantly share code, notes, and snippets.

@Kcko
Created February 16, 2021 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kcko/2b4ef80776a422d431c0e2dbb6f6fcbf to your computer and use it in GitHub Desktop.
Save Kcko/2b4ef80776a422d431c0e2dbb6f6fcbf to your computer and use it in GitHub Desktop.
<?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