Listing 34.6. Modyfikacja klasy Detective
class Detective
{
    ...

    /**
     * @ORM\OneToMany(targetEntity="Novel", mappedBy="detective")
     * @ORM\OrderBy({"title" = "ASC"})
     */
    protected $novels;

}