Listing 13.2. Metoda __toString() dla klasy Aktor wygenerowanej przez Doctrine
public function __toString()
{
    return $this['imie'] . ' ' . $this['nazwisko'];
}
