Skip to content

Instantly share code, notes, and snippets.

@fabiocarneiro
Created November 7, 2013 18:43
Show Gist options
  • Save fabiocarneiro/7359737 to your computer and use it in GitHub Desktop.
Save fabiocarneiro/7359737 to your computer and use it in GitHub Desktop.
-- element --
string 'Cart\Form\ProductFieldset' (length=25)
-- object --
object(Product\Entity\Product)[539]
protected 'id' => int 31
protected 'sku' => string 'PH043' (length=5)
protected 'name' => string 'FONE COM MICROFONE USB DIGITAL PC / PLAYSTATION 3' (length=49)
protected 'slug' => string 'fone-com-microfone-usb-digital-pc-playstation-3' (length=47)
-- hydrator target class --
string 'Product\Entity\Product' (length=22)
-- extracted object --
null
-- end --
echo '-- element --';
var_dump(get_class($targetElement));
echo ' -- object --';
var_dump($targetElement->getObject());
echo ' -- hydrator target class --';
var_dump($targetElement->getHydrator()->targetClass);
echo ' -- extracted object --';
var_dump($targetElement->extract());
echo ' -- end --';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment