Browse Source

Adding comment in database grammar.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
Taylor Otwell 12 years ago
parent
commit
afcb60ec60
1 changed files with 3 additions and 0 deletions
  1. 3 0
      laravel/database/grammar.php

+ 3 - 0
laravel/database/grammar.php

@@ -35,6 +35,9 @@ abstract class Grammar {
 	 */
 	 */
 	public function wrap_table($table)
 	public function wrap_table($table)
 	{
 	{
+		// Expressions should be injected into the query as raw strings so
+		// so we do not want to wrap them in any way. We will just return
+		// the string value from the expression to be included.
 		if ($table instanceof Expression)
 		if ($table instanceof Expression)
 		{
 		{
 			return $this->wrap($table);
 			return $this->wrap($table);