src/ActiveDoctrine/Entity/Entity.php
protected function fetchOneToMany($foreign_class, $foreign_column, $column)
    {
        return $foreign_class::select($this->connection)
            ->where($foreign_column, '=', $this->getRaw($column))
            ->execute();
    }
protected function fetchOneToMany($foreign_class, $foreign_column, $column)
    {
        return $foreign_class::select($this->connection)
            ->where($foreign_column, '=', $this->getRaw($column))
            ->execute();
    }
protected function fetchOneToMany ( $ foreign_class , $ foreign_column , $ column ) { return $ foreign_class :: select ( $ this -> connection ) -> where ( $ foreign_column , '=' , $ this -> getRaw ( $ column ) ) -> execute ( ) ; }
Query the database for a one to many relationship.

@param string $foreign_class  The class name of the related entity
@param string $foreign_column The name of the column on the other table
@param string $column         The name of column on this table
Query the database for a one to many relationship .