Created
February 16, 2021 10:17
-
-
Save Kcko/2b4ef80776a422d431c0e2dbb6f6fcbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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