-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.php
23 lines (15 loc) · 874 Bytes
/
demo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
use Magento\Framework\App\Bootstrap;
require dirname(__DIR__) . '/magento24/app/bootstrap.php';
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$resource=$objectManager->get('Magento\Framework\App\ResourceConnection');
$customerDetails = $objectManager->create('Magento\Customer\Model\Customer')->getCollection();
/* $objectManagers = \Magento\Framework\App\ObjectManager::getInstance();
$customerAddress=$objectManagers->create('Magento\Customer\Model\Address')->getCollection();
print_r($customerAddress);
*/
$customerAddress = $resource->getTableName('customer_address_entity');
$customerDetails->getSelect()->joinLeft(array('address' => $customerAddress),
'e.entity_id = address.parent_id');
print_r($customerDetails->getData());