public function findById($id)
    {
        $post = get_post($id);
        if (!is_null($post)) {
            return self::getEntity($post);
        }
    }
public function findById($id)
    {
        $post = get_post($id);
        if (!is_null($post)) {
            return self::getEntity($post);
        }
    }
public function findById ( $ id ) { $ post = get_post ( $ id ) ; if ( ! is_null ( $ post ) ) { return self :: getEntity ( $ post ) ; } }
Finds a model entity by it's ID.
@param  integer $id
@return Strata\Model\CustomPostType\ModelEntity
Finds a model entity by it s ID .