I'm trying to get all the products. I'm doing this way:
$objectManager->get('Magento\Catalog\Model\Product')
->getCollection()
->addAttributeToSelect('*');
But only simple products are returned.
Getting the NOT RETURNED products by sku works fine:
$p = $objectManager->create('\Magento\Catalog\Model\ProductRepository')->get($sku);
Any idea? Thanks in advance.
-- Magento version 2.2.0