src/ActiveDoctrine/Repository/AbstractRepository.php
/**
     * Select entities matching an array of conditions.
     *
     * @param  array            $conditions An array of the form 'column => value'
     * @return EntityCollection The selected entities
     */
Select entities matching an array of conditions.
@param  array            $conditions An array of the form 'column => value'
@return EntityCollection The selected entities
Select entities matching an array of conditions . @param array $conditions An array of the form ' column = > value ' @return EntityCollection The selected entities
public function findBy(array $conditions)
    {
        $s = $this->selector();
        foreach ($conditions as $column => $value) {
            $s->where($column, '=', $value);
        }
        return $s->execute();
    }
public function findBy ( array $ conditions ) { $ s = $ this -> selector ( ) ; foreach ( $ conditions as $ column => $ value ) { $ s -> where ( $ column , '=' , $ value ) ; } return $ s -> execute ( ) ; }
Select entities matching an array of conditions.
Select entities matching an array of conditions .