Created
November 7, 2013 18:43
-
-
Save fabiocarneiro/7359737 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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