@@ -149,6 +149,28 @@ public function setBrackets($brackets)
149149 $ this ->brackets = $ brackets ;
150150 }
151151
152+ private $ delimiter = ' ' ;
153+
154+ /**
155+ * @return string
156+ */
157+ public function getDelimiter ()
158+ {
159+ return $ this ->delimiter ;
160+ }
161+
162+ /**
163+ * Sets the delimiter for the list. Defaults to ' '.
164+ *
165+ * @param string $delimiter
166+ */
167+ public function setDelimiter ($ delimiter )
168+ {
169+ $ this ->delimiter = $ delimiter ;
170+ }
171+
172+
173+
152174 /**
153175 * Returns a Mouf instance descriptor describing this object.
154176 *
@@ -164,6 +186,7 @@ public function toInstanceDescriptor(MoufManager $moufManager)
164186 $ instanceDescriptor ->getProperty ('alias ' )->setValue (NodeFactory::nodeToInstanceDescriptor ($ this ->alias , $ moufManager ));
165187 $ instanceDescriptor ->getProperty ('direction ' )->setValue (NodeFactory::nodeToInstanceDescriptor ($ this ->direction , $ moufManager ));
166188 $ instanceDescriptor ->getProperty ('brackets ' )->setValue (NodeFactory::nodeToInstanceDescriptor ($ this ->brackets , $ moufManager ));
189+ $ instanceDescriptor ->getProperty ('delimiter ' )->setValue (NodeFactory::nodeToInstanceDescriptor ($ this ->delimiter , $ moufManager ));
167190
168191 return $ instanceDescriptor ;
169192 }
@@ -180,7 +203,7 @@ public function toInstanceDescriptor(MoufManager $moufManager)
180203 */
181204 public function toSql (array $ parameters = array (), Connection $ dbConnection = null , $ indent = 0 , $ conditionsMode = self ::CONDITION_APPLY )
182205 {
183- $ sql = NodeFactory::toSql ($ this ->subTree , $ dbConnection , $ parameters , ' ' , false , $ indent , $ conditionsMode );
206+ $ sql = NodeFactory::toSql ($ this ->subTree , $ dbConnection , $ parameters , $ this -> delimiter , false , $ indent , $ conditionsMode );
184207
185208 if ($ sql === null ) {
186209 return null ;
0 commit comments