<?php

namespace Harp\Core\Test\Repo;

use Harp\Core\Test\Model;
use Harp\Core\Test\Rel;

/**
 * @author     Ivan Kerin
 * @copyright  (c) 2014 Clippings Ltd.
 * @license    http://www.opensource.org/licenses/isc-license.txt
 */
class BlogPost extends Post {

    public static function newInstance()
    {
        return new BlogPost('Harp\Core\Test\Model\BlogPost', 'Post.json');
    }

    public function initialize()
    {
        parent::initialize();

        $this
            ->addRels([
                new Rel\One('address', $this, Address::get()),
            ]);
    }
}

<?php

namespace Harp\Core\Test\Repo;

use Harp\Core\Test\Model;
use Harp\Core\Test\Rel;

/**
 * @author     Ivan Kerin
 * @copyright  (c) 2014 Clippings Ltd.
 * @license    http://www.opensource.org/licenses/isc-license.txt
 */
class BlogPost extends Post {

    public static function newInstance()
    {
        return new BlogPost('Harp\Core\Test\Model\BlogPost', 'Post.json');
    }

    public function initialize()
    {
        parent::initialize();

        $this
            ->setRootRepo(Post::get())
            ->addRels([
                new Rel\One('address', $this, Address::get()),
            ]);
    }
}

Set proper config for inherited repo
:lipstick: Set proper config for inherited repo
