Register php classes with parent which corresponds to core class hierarchy. Fix gh-3
Register php classes with parent which corresponds to core class
hierarchy. Fix gh-3

midgardproject/midgard-php5,midgardproject/midgard-php5,midgardproject/midgard-php5,midgardproject/midgard-php5