title: Magento 2.2: Child product of Configurable product missing attributes
body: <p>When I examine the contents of $product->getData() for a regular product, all the attributes I set in the admin appear to be there. But when I examine the contents of $product->getData() for a child product inside a configurable product, many of the values set in the admin seem to be missing.</p>
  
  <p>Is there something obvious that I'm missing?</p>
  
  <p>For the product class, I'm referring to \Magento\Catalog\Model\Product.</p>
  
  <p>Edit: If I make the child product visible on its own and navigate to its page, I can see that all of its attributes are loaded. By contrast, when I get a list of all child products (classes which don't seem to contain all the attributes I set in the admin), this is the way I'm loading them from within a class that overrides \Magento\Swatches\Block\Product\Renderer\Configurable:</p>
  
  <pre><code>$this-&gt;getProduct()-&gt;getTypeInstance()-&gt;getUsedProducts($this-&gt;getProduct())
  </code></pre>
  
  <p>I'm guessing there's something different that occurs when the product classes get instantiated this way that's causing my issue.</p>
  
  <p>Please forgive my newbness. I'm still very new to Magento and am trying to find my way around. Thanks!</p>