public function bindToObject($obj)
    {
        if (is_array($obj)) {
            $obj = (object)$obj;
        }

        $this->associatedObject = $obj;
    }
public function bindToObject($obj)
    {
        if (is_array($obj)) {
            $obj = (object)$obj;
        }

        $this->associatedObject = $obj;
    }
public function bindToObject ( $ obj ) { if ( is_array ( $ obj ) ) { $ obj = ( object ) $ obj ; } $ this -> associatedObject = $ obj ; }
Associates the entity to another object.
We pass-through rather than directly assign the properties of the associated object
because we don't want this object to inherit WP_Post.
@var mixed Usually a WP_Post object, but can also be anything inheriting stdClass
Associates the entity to another object . We pass - through rather than directly assign the properties of the associated object because we don t want this object to inherit WP_Post .