Skip to content

Instantly share code, notes, and snippets.

View matheusgontijo's full-sized avatar

Matheus Gontijo matheusgontijo

View GitHub Profile
@matheusgontijo
matheusgontijo / magento-2-debugging-tricks-mysql-query-fetchall-fetchrow-data-hydrate-and-xdebug.php
Created June 10, 2019 01:00
Magento 2 Debugging Tricks - MySQL Query, fetchAll, fetchRow, Data Hydrate & PHP xDebug by Matheus Gontijo
Magento 2 Debugging Tricks - MySQL Query, fetchAll, fetchRow, Data Hydrate & PHP xDebug by Matheus Gontijo
Video: https://www.youtube.com/watch?v=xLf3OwpAFhQ
-----------------------------------------------
1) Track MySQL queries
vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php::query
vendor/magento/zendframework1/library/Zend/Db/Select.php
@matheusgontijo
matheusgontijo / magento-2-debugging-tricks-setdata-dataobject-php-and-xdebug.php
Created June 10, 2019 00:57
Magento 2 Debugging Tricks - setData, DataObject.php & xDebug by Matheus Gontijo
Magento 2 Debugging Tricks - setData, DataObject.php & xDebug by Matheus Gontijo
Video: https://www.youtube.com/watch?v=eo8N7e9eEPI
-----------------------------------------------
What is "stripos"?
<?php
// https://www.php.net/stripos