przewiń do treści

Symfony 2 od podstaw

Włodzimierz Gajda

/**
 * Finds all entities in the repository.
 *
 * @return array The entities.
 */
public function findAll()
{
    return $this->findBy(array(), array('name' => 'ASC');
}

Listing 19.7. Metoda findAll() klasy Entity

Rozdział 19. Dostosowywanie klas dostępu do bazy danych

listing-19-07.txt

Reklama

Szkolenia z Symfony 2.1
©2012 Włodzimierz Gajda
ver. 1.0.1