<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -315,6 +315,8 @@ abstract class PhpBURN_Dialect  implements IDialect  {
 			$field = $this-&gt;getMap()-&gt;getPrimaryKey();
 			$lastId = $this-&gt;getModel()-&gt;getConnection()-&gt;last_id();
 			$this-&gt;getMap()-&gt;setFieldValue($field['field']['alias'],$lastId);
+			
+			return true;
 		} else {
 			return false;
 		}</diff>
      <filename>app/libs/Dialect/Dialect.php</filename>
    </modified>
    <modified>
      <diff>@@ -395,6 +395,25 @@ abstract class PhpBURN_Core implements IPhpBurn {
 	}
 	
 	/**
+	 * Like method
+	 * 
+	 * Add a LIKE condition to your select query
+	 * 
+	 * @param String $field
+	 * @param String $condition
+	 */
+	public function like($field, $content, $condition = null) {
+		if(count($this-&gt;_where) &gt; 0) {
+			$condition = $condition == null ? 'AND' : $condition;
+			$field = sprintf(' %s %s', $condition, $field);
+		}
+		
+		$strLike = sprintf(&quot;%s LIKE (%s)&quot;, $field, $condition);
+		$this-&gt;where($strLike);
+	}
+	
+	
+	/**
 	 * Here we setup the operators table, that translate the spoken language into a programatic operator. It will be used in database queries.
 	 * @var Array
 	 */</diff>
      <filename>app/libs/Model.php</filename>
    </modified>
    <modified>
      <diff>@@ -163,6 +163,10 @@ abstract class PhpBURN {
 			}
 		}
 	}
+	
+	public function redirect($direction) {
+		echo &quot;&lt;script&gt; document.location='&quot;.SYS_BASE_URL.&quot;$direction'; &lt;/script&gt;&quot;;
+	}
 
 }
 PhpBURN::load('Configuration','Message');</diff>
      <filename>app/phpBurn.php</filename>
    </modified>
    <modified>
      <diff>@@ -25,6 +25,8 @@ class main extends Controller {
 			print_r($user-&gt;toArray());
 		}
 		print &quot;&lt;/pre&gt;&quot;;
+		
+		
 	}
 	
 	public function findWithWhere() {</diff>
      <filename>example_application/system/controllers/main.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>269776ef16ac2811c116750cfae7f4d3aba614cf</id>
    </parent>
  </parents>
  <author>
    <name>Klederson Bueno</name>
    <email>klederson@klederson.com</email>
  </author>
  <url>http://github.com/klederson/phpburn/commit/506c0734b3310abfad35e63fbe6d8c917e1fedc2</url>
  <id>506c0734b3310abfad35e63fbe6d8c917e1fedc2</id>
  <committed-date>2009-11-02T22:19:17-08:00</committed-date>
  <authored-date>2009-11-02T22:19:17-08:00</authored-date>
  <message>Added return true when saves right and added a new function to main core called redirect that calls a controller using URL ex: PhpBURN::redirect('albums/01')</message>
  <tree>2ac73f261c189ce1d7cc5f8f3cd6b977f5d8cb83</tree>
  <committer>
    <name>Klederson Bueno</name>
    <email>klederson@klederson.com</email>
  </committer>
</commit>
