From ba50f978a579fb6dfc40a7182396c833086c69e7 Mon Sep 17 00:00:00 2001 From: Erik van Velzen Date: Tue, 2 Sep 2014 13:52:52 +0200 Subject: [PATCH] Add QueryBuilder::addSelect() --- docs/en/reference/query-builder.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/en/reference/query-builder.rst b/docs/en/reference/query-builder.rst index fba2d75ec..b58e47dd4 100644 --- a/docs/en/reference/query-builder.rst +++ b/docs/en/reference/query-builder.rst @@ -126,6 +126,12 @@ Here is a complete list of helper methods available in ``QueryBuilder``: // Example - $qb->select(array('u', 'p')) // Example - $qb->select($qb->expr()->select('u', 'p')) public function select($select = null); + + // addSelect does not override previous calls to select + // + // Example - $qb->select('u'); + // ->addSelect('p.area_code'); + public function addSelect($select = null); // Example - $qb->delete('User', 'u') public function delete($delete = null, $alias = null);