protected function loadFixtures()
    {
        $this->loadPropelQuickBuilder();
        $schema = <<<XML
<database name="default" package="vendor.bundles.Propel.PropelBundle.Tests.Request.DataFixtures.Loader"
    namespace="Propel\\PropelBundle\\Tests\\Request\\ParamConverter" defaultIdMethod="native">
    <table name="my_book">
        <column name="id" type="integer" primaryKey="true" />
        <column name="name" type="varchar" size="255" />
        <column name="my_author_id" type="integer" required="true" />

        <foreign-key foreignTable="my_author" onDelete="CASCADE" onUpdate="CASCADE">
            <reference local="my_author_id" foreign="id" />
        </foreign-key>
    </table>

    <table name="my_author">
        <column name="id" type="integer" primaryKey="true" />
        <column name="name" type="varchar" size="255" />
    </table>
</database>
XML;
        $builder = new \PropelQuickBuilder();
        $builder->setSchema($schema);
        if (class_exists('Propel\\PropelBundle\\Tests\\Request\\ParamConverter\\MyAuthor')) {
            $builder->setClassTargets(array());
        }
        $this->con = $builder->build();
        $this->con->useDebug(true);
        MyBookQuery::create()->deleteAll($this->con);
        MyAuthorQuery::create()->deleteAll($this->con);
        $author = new MyAuthor();
        $author->setId(10);
        $author->setName('Will');
        $book = new MyBook();
        $book->setId(1);
        $book->setName('PropelBook');
        $book->setMyAuthor($author);
        $book2 = new MyBook();
        $book2->setId(2);
        $book2->setName('sf2lBook');
        $book2->setMyAuthor($author);
        $author->save($this->con);
    }
abstract class Book
{
    protected $title;
    protected $author;
    function __construct($t, $a)
    {
        $this->title = $t;
        $this->author = $a;
    }
    protected abstract function display();
}
class MyBook extends Book
{
    protected $price;
    function __construct($title, $author, $price)
    {
        parent::__construct($title, $author);
        $this->price = $price;
    }
    function display()
    {
        echo "Title: {$this->title}";
        echo "Author: {$this->author}";
        echo "Price: {$this->price}";
    }
}
$title = fgets(STDIN);
$author = fgets(STDIN);
$price = intval(fgets(STDIN));
$novel = new MyBook($title, $author, $price);
$novel->display();