Commit 53b05c1d authored by meus's avatar meus

added tests to get complete coverage of Transaction, RawSQL, AuditLog and...

added tests to get complete coverage of Transaction, RawSQL, AuditLog and Query/Having. Related refactorings. Added some getters to be able to test. Also added coverage report for these changes
parent 520f4a10
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
* and is licensed under the LGPL. For more information, see * and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>. * <http://www.phpdoctrine.com>.
*/ */
Doctrine::autoload("Doctrine_Connection_Common"); Doctrine::autoload("Doctrine_Connection_Common");
/** /**
* Doctrine_Connection_Sqlite * Doctrine_Connection_Sqlite
* *
...@@ -46,9 +48,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common ...@@ -46,9 +48,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
*/ */
public function __construct(Doctrine_Manager $manager, $adapter) public function __construct(Doctrine_Manager $manager, $adapter)
{ {
$this->supported = array('sequences' => 'emulated',
$this->supported = array(
'sequences' => 'emulated',
'indexes' => true, 'indexes' => true,
'affected_rows' => true, 'affected_rows' => true,
'summary_functions' => true, 'summary_functions' => true,
...@@ -67,13 +67,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common ...@@ -67,13 +67,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
'identifier_quoting' => true, 'identifier_quoting' => true,
'pattern_escaping' => false, 'pattern_escaping' => false,
); );
/**
$this->options['base_transaction_name'] = '___php_Doctrine_sqlite_auto_commit_off';
$this->options['fixed_float'] = 0;
$this->options['database_path'] = '';
$this->options['database_extension'] = '';
$this->options['server_version'] = '';
*/
parent::__construct($manager, $adapter); parent::__construct($manager, $adapter);
if ($this->isConnected) { if ($this->isConnected) {
......
...@@ -1267,4 +1267,14 @@ class Doctrine_Hydrate extends Doctrine_Locator_Injectable implements Serializab ...@@ -1267,4 +1267,14 @@ class Doctrine_Hydrate extends Doctrine_Locator_Injectable implements Serializab
{ {
return Doctrine_Lib::formatSql($this->getQuery()); return Doctrine_Lib::formatSql($this->getQuery());
} }
/**
* Return the parts
*
* @return array The parts
*/
public function getParts()
{
return $this->parts;
}
} }
...@@ -78,6 +78,7 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition ...@@ -78,6 +78,7 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
} }
} }
/** /**
* load * load
* returns the parsed query part * returns the parsed query part
...@@ -87,17 +88,11 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition ...@@ -87,17 +88,11 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
*/ */
final public function load($having) final public function load($having)
{ {
$e = Doctrine_Tokenizer::bracketExplode($having, ' ', '(', ')'); $tokens = Doctrine_Tokenizer::bracketExplode($having, ' ', '(', ')');
$part = $this->parseAggregateFunction(array_shift($tokens));
$r = array_shift($e); $operator = array_shift($tokens);
$t = explode('(', $r); $value = implode(' ', $tokens);
$part .= ' ' . $operator . ' ' . $value;
$count = count($t); return $part;
$r = $this->parseAggregateFunction($r);
$operator = array_shift($e);
$value = implode(' ', $e);
$r .= ' ' . $operator . ' ' . $value;
return $r;
} }
} }
...@@ -51,20 +51,31 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract ...@@ -51,20 +51,31 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract
public function parseQueryPart($queryPartName, $queryPart, $append = false) public function parseQueryPart($queryPartName, $queryPart, $append = false)
{ {
if ($queryPartName == 'select') { if ($queryPartName == 'select') {
preg_match_all('/{([^}{]*)}/U', $queryPart, $m); $this->parseSelectFields($queryPart);
return $this;
}
if( ! isset($this->parts[$queryPartName])) {
$this->parts[$queryPartName] = array();
}
$this->fields = $m[1]; if (! $append) {
$this->parts['select'] = array();
} else {
if ( ! $append) {
$this->parts[$queryPartName] = array($queryPart); $this->parts[$queryPartName] = array($queryPart);
} else { }else {
$this->parts[$queryPartName][] = $queryPart; $this->parts[$queryPartName][] = $queryPart;
} }
}
return $this; return $this;
} }
/**
* Add select parts to fields
*
* @param $queryPart sting The name of the querypart
*/
private function parseSelectFields($queryPart){
preg_match_all('/{([^}{]*)}/U', $queryPart, $m);
$this->fields = $m[1];
$this->parts['select'] = array();
}
/** /**
* parseQuery * parseQuery
* parses an sql query and adds the parts to internal array * parses an sql query and adds the parts to internal array
...@@ -74,46 +85,48 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract ...@@ -74,46 +85,48 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract
*/ */
public function parseQuery($query) public function parseQuery($query)
{ {
preg_match_all('/{([^}{]*)}/U', $query, $m); $this->parseSelectFields($query);
$this->fields = $m[1];
$this->clear(); $this->clear();
$e = Doctrine_Tokenizer::sqlExplode($query,' '); $tokens = Doctrine_Tokenizer::sqlExplode($query,' ');
foreach ($e as $k => $part) { $parts = array();
$low = strtolower($part); foreach ($tokens as $key => $part) {
switch (strtolower($part)) { $partLowerCase = strtolower($part);
switch ($partLowerCase) {
case 'select': case 'select':
case 'from': case 'from':
case 'where': case 'where':
case 'limit': case 'limit':
case 'offset': case 'offset':
case 'having': case 'having':
$p = $low; $type = $partLowerCase;
if ( ! isset($parts[$low])) { if ( ! isset($parts[$partLowerCase])) {
$parts[$low] = array(); $parts[$partLowerCase] = array();
} }
break; break;
case 'order': case 'order':
case 'group': case 'group':
$i = ($k + 1); $i = $key + 1;
if (isset($e[$i]) && strtolower($e[$i]) === 'by') { if (isset($tokens[$i]) && strtolower($tokens[$i]) === 'by') {
$p = $low; $type = $partLowerCase . 'by';
$p .= 'by'; $parts[$type] = array();
$parts[$low . 'by'] = array();
} else { } else {
$parts[$p][] = $part; //not a keyword so we add it to the previous type
$parts[$type][] = $part;
} }
break; break;
case 'by': case 'by':
continue; continue;
default: default:
if ( ! isset($parts[$p][0])) { //not a keyword so we add it to the previous type.
$parts[$p][0] = $part; if ( ! isset($parts[$type][0])) {
$parts[$type][0] = $part;
} else { } else {
$parts[$p][0] .= ' '.$part; // why does this add to index 0 and not append to the
// array. If it had done that one could have used
// parseQueryPart.
$parts[$type][0] .= ' '.$part;
} }
} }
} }
......
...@@ -125,6 +125,16 @@ class Doctrine_Transaction extends Doctrine_Connection_Module ...@@ -125,6 +125,16 @@ class Doctrine_Transaction extends Doctrine_Connection_Module
return true; return true;
} }
/**
* Return the invalid records
*
* @return array An array of invalid records
*/
public function getInvalid(){
return $this->invalid;
}
/** /**
* getTransactionLevel * getTransactionLevel
* get the current transaction nesting level * get the current transaction nesting level
......
...@@ -90,4 +90,12 @@ class Doctrine_AuditLog_TestCase extends Doctrine_UnitTestCase ...@@ -90,4 +90,12 @@ class Doctrine_AuditLog_TestCase extends Doctrine_UnitTestCase
$this->pass(); $this->pass();
} }
} }
public function testReturnFalseIfVersionTableExists()
{
$entity = new VersioningTest();
$entity_table = $entity->getTable();
$auditLog = new Doctrine_AuditLog(array("table" => $entity_table));
$this->assertFalse($auditLog->buildDefinition($entity_table));
}
} }
...@@ -56,4 +56,12 @@ class Doctrine_Query_Having_TestCase extends Doctrine_UnitTestCase ...@@ -56,4 +56,12 @@ class Doctrine_Query_Having_TestCase extends Doctrine_UnitTestCase
$q->parseQuery("SELECT CONCAT(u.name, u.loginname) name FROM User u LEFT JOIN u.Phonenumber p HAVING name = 'xx'"); $q->parseQuery("SELECT CONCAT(u.name, u.loginname) name FROM User u LEFT JOIN u.Phonenumber p HAVING name = 'xx'");
} }
public function testReturnFuncIfNumeric()
{
$having = new Doctrine_Query_Having("test");
$part = $having->load("1");
$this->assertEqual("1",trim($part));
}
} }
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
*/ */
class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase
{ {
public function testQueryParser() public function testQueryParser()
{ {
$sql = 'SELECT {p.*} FROM photos p'; $sql = 'SELECT {p.*} FROM photos p';
...@@ -248,4 +247,47 @@ class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase ...@@ -248,4 +247,47 @@ class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase
$this->assertEqual(count($coll), 3); $this->assertEqual(count($coll), 3);
} }
public function testParseQueryPartShouldAddPartIfNotSelectAndAppend()
{
$query = new Doctrine_Rawsql();
$query->parseQueryPart("test", "test", true);
$parts = $query->getParts();
$this->assertTrue(isset($parts["test"]));
$this->assertTrue(is_array($parts["test"]));
$this->assertTrue(isset($parts["test"][0]));
$this->assertEqual("test", $parts["test"][0]);
}
public function testParseQueryShouldExtractGroupBy()
{
$query = new Doctrine_RawSql();
$query->parseQuery("having group");
$parts = $query->getParts();
$this->assertEqual($parts["having"][0], "group");
}
public function testThrowExceptionIfFieldNameIsOnWrongForm()
{
$query = new Doctrine_RawSql();
$query->parseQueryPart("select", "{test}");
try{
$query->getQuery();
$this->fail("Should throw exception");
}catch(Doctrine_RawSql_Exception $exception){
$this->assertEqual($exception->getMessage(), "All selected fields in Sql query must be in format tableAlias.fieldName");
}
}
public function testThrowExceptionIfAliasDoesNotExist()
{
$query = new Doctrine_RawSql();
$query->parseQueryPart("select", "{test.test}");
try{
$query->getQuery();
$this->fail("Should throw exception");
}catch(Doctrine_RawSql_Exception $exception){
$this->assertEqual($exception->getMessage(), "The associated component for table alias test couldn't be found.");
}
}
} }
...@@ -224,6 +224,15 @@ class Doctrine_Transaction_TestCase extends Doctrine_UnitTestCase ...@@ -224,6 +224,15 @@ class Doctrine_Transaction_TestCase extends Doctrine_UnitTestCase
$this->assertTrue($phonenumber->id > 0); $this->assertTrue($phonenumber->id > 0);
} }
public function testAddDuplicateRecordToTransactionShouldSkipSecond(){
$transaction = new Doctrine_Transaction();
$user = new User();
$transaction->addInvalid($user);
$this->assertEqual(1, count($transaction->getInvalid()));
$transaction->addInvalid($user);
$this->assertEqual(1, count($transaction->getInvalid()));
}
} }
class TransactionListener extends Doctrine_EventListener class TransactionListener extends Doctrine_EventListener
{ {
......
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(class_exists($className))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(class_exists($className))&nbsp;{
</td></tr> </td></tr>
<tr><td>80</td> <tr><td>80</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
......
...@@ -70,97 +70,97 @@ ...@@ -70,97 +70,97 @@
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*/
</td></tr> </td></tr>
<tr><td>21</td> <tr><td>21</td>
<td class="covered">Doctrine::autoload(&quot;Doctrine_Connection_Common&quot;); <td class="normal">
</td></tr> </td></tr>
<tr><td>22</td> <tr><td>22</td>
<td class="normal">/** <td class="covered">Doctrine::autoload(&quot;Doctrine_Connection_Common&quot;);
</td></tr> </td></tr>
<tr><td>23</td> <tr><td>23</td>
<td class="normal">&nbsp;*&nbsp;Doctrine_Connection_Sqlite <td class="normal">
</td></tr> </td></tr>
<tr><td>24</td> <tr><td>24</td>
<td class="normal">&nbsp;* <td class="normal">/**
</td></tr> </td></tr>
<tr><td>25</td> <tr><td>25</td>
<td class="normal">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doctrine <td class="normal">&nbsp;*&nbsp;Doctrine_Connection_Sqlite
</td></tr> </td></tr>
<tr><td>26</td> <tr><td>26</td>
<td class="normal">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;Connection <td class="normal">&nbsp;*
</td></tr> </td></tr>
<tr><td>27</td> <tr><td>27</td>
<td class="normal">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/lgpl-license.php&nbsp;LGPL <td class="normal">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doctrine
</td></tr> </td></tr>
<tr><td>28</td> <tr><td>28</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt; <td class="normal">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;Connection
</td></tr> </td></tr>
<tr><td>29</td> <tr><td>29</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lukas&nbsp;Smith&nbsp;&lt;smith@pooteeweet.org&gt;&nbsp;(PEAR&nbsp;MDB2&nbsp;library) <td class="normal">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/lgpl-license.php&nbsp;LGPL
</td></tr> </td></tr>
<tr><td>30</td> <tr><td>30</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$ <td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
</td></tr> </td></tr>
<tr><td>31</td> <tr><td>31</td>
<td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com <td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lukas&nbsp;Smith&nbsp;&lt;smith@pooteeweet.org&gt;&nbsp;(PEAR&nbsp;MDB2&nbsp;library)
</td></tr> </td></tr>
<tr><td>32</td> <tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0 <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$
</td></tr> </td></tr>
<tr><td>33</td> <tr><td>33</td>
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com
</td></tr> </td></tr>
<tr><td>34</td> <tr><td>34</td>
<td class="covered">class&nbsp;Doctrine_Connection_Sqlite&nbsp;extends&nbsp;Doctrine_Connection_Common <td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr> </td></tr>
<tr><td>35</td> <tr><td>35</td>
<td class="normal">{ <td class="normal">&nbsp;*/
</td></tr> </td></tr>
<tr><td>36</td> <tr><td>36</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">class&nbsp;Doctrine_Connection_Sqlite&nbsp;extends&nbsp;Doctrine_Connection_Common
</td></tr> </td></tr>
<tr><td>37</td> <tr><td>37</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;string&nbsp;$driverName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;this&nbsp;connection&nbsp;driver <td class="normal">{
</td></tr> </td></tr>
<tr><td>38</td> <tr><td>38</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>39</td> <tr><td>39</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;$driverName&nbsp;=&nbsp;'Sqlite'; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;string&nbsp;$driverName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;this&nbsp;connection&nbsp;driver
</td></tr> </td></tr>
<tr><td>40</td> <tr><td>40</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>41</td> <tr><td>41</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;$driverName&nbsp;=&nbsp;'Sqlite';
</td></tr> </td></tr>
<tr><td>42</td> <tr><td>42</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;the&nbsp;constructor <td class="normal">
</td></tr> </td></tr>
<tr><td>43</td> <tr><td>43</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>44</td> <tr><td>44</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;Doctrine_Manager&nbsp;$manager <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;the&nbsp;constructor
</td></tr> </td></tr>
<tr><td>45</td> <tr><td>45</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;PDO&nbsp;$pdo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;database&nbsp;handle <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>46</td> <tr><td>46</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;Doctrine_Manager&nbsp;$manager
</td></tr> </td></tr>
<tr><td>47</td> <tr><td>47</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;__construct(Doctrine_Manager&nbsp;$manager,&nbsp;$adapter) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;PDO&nbsp;$pdo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;database&nbsp;handle
</td></tr> </td></tr>
<tr><td>48</td> <tr><td>48</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>49</td> <tr><td>49</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;__construct(Doctrine_Manager&nbsp;$manager,&nbsp;$adapter)
</td></tr> </td></tr>
<tr><td>50</td> <tr><td>50</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;supported&nbsp;=&nbsp;array( <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>51</td> <tr><td>51</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sequences'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'emulated', <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;supported&nbsp;=&nbsp;array('sequences'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'emulated',
</td></tr> </td></tr>
<tr><td>52</td> <tr><td>52</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'indexes'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;true, <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'indexes'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;true,
...@@ -217,146 +217,126 @@ ...@@ -217,146 +217,126 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);
</td></tr> </td></tr>
<tr><td>70</td> <tr><td>70</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct($manager,&nbsp;$adapter);
</td></tr> </td></tr>
<tr><td>71</td> <tr><td>71</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['base_transaction_name']&nbsp;=&nbsp;'___php_Doctrine_sqlite_auto_commit_off'; <td class="normal">
</td></tr> </td></tr>
<tr><td>72</td> <tr><td>72</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['fixed_float']&nbsp;=&nbsp;0; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{
</td></tr> </td></tr>
<tr><td>73</td> <tr><td>73</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['database_path']&nbsp;=&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2);
</td></tr> </td></tr>
<tr><td>74</td> <tr><td>74</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['database_extension']&nbsp;=&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl'));
</td></tr> </td></tr>
<tr><td>75</td> <tr><td>75</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['server_version']&nbsp;=&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1);
</td></tr> </td></tr>
<tr><td>76</td> <tr><td>76</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0);
</td></tr> </td></tr>
<tr><td>77</td> <tr><td>77</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct($manager,&nbsp;$adapter); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>78</td> <tr><td>78</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>79</td> <tr><td>79</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>80</td> <tr><td>80</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl')); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;initializes&nbsp;database&nbsp;functions&nbsp;missing&nbsp;in&nbsp;sqlite
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>82</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>83</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@see&nbsp;Doctrine_Expression
</td></tr> </td></tr>
<tr><td>84</td> <tr><td>84</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>85</td> <tr><td>85</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>86</td> <tr><td>86</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;connect()&nbsp;
</td></tr> </td></tr>
<tr><td>87</td> <tr><td>87</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>88</td> <tr><td>88</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;initializes&nbsp;database&nbsp;functions&nbsp;missing&nbsp;in&nbsp;sqlite <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>89</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>90</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@see&nbsp;Doctrine_Expression <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>91</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>92</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::connect();
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>93</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;connect()&nbsp; <td class="normal">
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>94</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2);
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>95</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl'));
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>96</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1);
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>97</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0);
</td></tr> </td></tr>
<tr><td>98</td> <tr><td>98</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>99</td> <tr><td>99</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::connect(); <td class="normal">
</td></tr> </td></tr>
<tr><td>100</td> <tr><td>100</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>101</td> <tr><td>101</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getDatabaseFile
</td></tr> </td></tr>
<tr><td>102</td> <tr><td>102</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl')); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>103</td> <tr><td>103</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;database
</td></tr> </td></tr>
<tr><td>104</td> <tr><td>104</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr> </td></tr>
<tr><td>105</td> <tr><td>105</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>106</td> <tr><td>106</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getDatabaseFile($name)
</td></tr> </td></tr>
<tr><td>107</td> <tr><td>107</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>108</td> <tr><td>108</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getDatabaseFile <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$name&nbsp;.&nbsp;'.db';
</td></tr> </td></tr>
<tr><td>109</td> <tr><td>109</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>110</td> <tr><td>110</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;database <td class="normal">}
</td></tr>
<tr><td>111</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr>
<tr><td>112</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>113</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getDatabaseFile($name)
</td></tr>
<tr><td>114</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>115</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$name&nbsp;.&nbsp;'.db';
</td></tr>
<tr><td>116</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>117</td>
<td class="covered">}</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -3817,6 +3817,36 @@ ...@@ -3817,6 +3817,36 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1270</td> <tr><td>1270</td>
<td class="normal">
</td></tr>
<tr><td>1271</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1272</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Return&nbsp;the&nbsp;parts
</td></tr>
<tr><td>1273</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1274</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;The&nbsp;parts
</td></tr>
<tr><td>1275</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1276</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getParts()
</td></tr>
<tr><td>1277</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1278</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;parts;
</td></tr>
<tr><td>1279</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1280</td>
<td class="normal">} <td class="normal">}
</td></tr> </td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -343,5 +343,6 @@ ...@@ -343,5 +343,6 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>112</td> <tr><td>112</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>76</td> <tr><td>76</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$func; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$func;
</td></tr> </td></tr>
<tr><td>77</td> <tr><td>77</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
...@@ -250,71 +250,57 @@ ...@@ -250,71 +250,57 @@
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>82</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;load <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>83</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;parsed&nbsp;query&nbsp;part <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;load
</td></tr> </td></tr>
<tr><td>84</td> <tr><td>84</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;parsed&nbsp;query&nbsp;part
</td></tr> </td></tr>
<tr><td>85</td> <tr><td>85</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$having <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>86</td> <tr><td>86</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$having
</td></tr> </td></tr>
<tr><td>87</td> <tr><td>87</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr> </td></tr>
<tr><td>88</td> <tr><td>88</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;public&nbsp;function&nbsp;load($having) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>89</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;public&nbsp;function&nbsp;load($having)
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>90</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::bracketExplode($having,&nbsp;'&nbsp;',&nbsp;'(',&nbsp;')'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>91</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tokens&nbsp;=&nbsp;Doctrine_Tokenizer::bracketExplode($having,&nbsp;'&nbsp;',&nbsp;'(',&nbsp;')');
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>92</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$r&nbsp;=&nbsp;array_shift($e); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$part&nbsp;=&nbsp;$this-&gt;parseAggregateFunction(array_shift($tokens));
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>93</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;=&nbsp;explode('(',&nbsp;$r); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;&nbsp;=&nbsp;array_shift($tokens);
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>94</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;implode('&nbsp;',&nbsp;$tokens);
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>95</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$count&nbsp;=&nbsp;count($t); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$part&nbsp;.=&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$value;
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>96</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$r&nbsp;=&nbsp;$this-&gt;parseAggregateFunction($r); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$part;
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>97</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;&nbsp;=&nbsp;array_shift($e); <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>98</td> <tr><td>98</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;implode('&nbsp;',&nbsp;$e); <td class="normal">}
</td></tr>
<tr><td>99</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$r&nbsp;.=&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$value;
</td></tr>
<tr><td>100</td>
<td class="normal">
</td></tr>
<tr><td>101</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$r;
</td></tr>
<tr><td>102</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>103</td>
<td class="covered">}</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -172,5 +172,6 @@ ...@@ -172,5 +172,6 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>55</td> <tr><td>55</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<td class="normal">/* <td class="normal">/*
</td></tr> </td></tr>
<tr><td>3</td> <tr><td>3</td>
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Where.php&nbsp;2963&nbsp;2007-10-21&nbsp;06:23:59Z&nbsp;Jonathan.Wage&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Where.php&nbsp;3029&nbsp;2007-10-29&nbsp;18:04:22Z&nbsp;zYne&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0 <td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr> </td></tr>
<tr><td>30</td> <tr><td>30</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$ <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3029&nbsp;$
</td></tr> </td></tr>
<tr><td>31</td> <tr><td>31</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt; <td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
...@@ -241,302 +241,282 @@ ...@@ -241,302 +241,282 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>78</td> <tr><td>78</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;query-&gt;getType()&nbsp;===&nbsp;Doctrine_Query::SELECT)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>79</td> <tr><td>79</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$conn-&gt;quoteIdentifier($alias) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$this-&gt;query-&gt;parseClause($first);
</td></tr> </td></tr>
<tr><td>80</td> <tr><td>80</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;'.' <td class="normal">
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;$conn-&gt;quoteIdentifier($table-&gt;getColumnName($field)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;$first&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$this-&gt;parseValue($value,&nbsp;$table,&nbsp;$field);
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>82</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>83</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$conn-&gt;quoteIdentifier($table-&gt;getColumnName($field)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>84</td> <tr><td>84</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>85</td> <tr><td>85</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>86</td> <tr><td>86</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$this-&gt;query-&gt;parseClause($first); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>87</td> <tr><td>87</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>88</td> <tr><td>88</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;$first&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$this-&gt;parseValue($value,&nbsp;$table,&nbsp;$field); <td class="normal">
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>89</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseValue($value,&nbsp;Doctrine_Table&nbsp;$table&nbsp;=&nbsp;null,&nbsp;$field&nbsp;=&nbsp;null)
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>90</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>91</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;'(')&nbsp;{
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>92</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;trim&nbsp;brackets
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>93</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$trimmed&nbsp;&nbsp;&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim($value);
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>94</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>95</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'FROM'&nbsp;||
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>96</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseValue($value,&nbsp;Doctrine_Table&nbsp;$table&nbsp;=&nbsp;null,&nbsp;$field&nbsp;=&nbsp;null) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;substr($trimmed,&nbsp;0,&nbsp;6)&nbsp;==&nbsp;'SELECT')&nbsp;{
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>97</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>98</td> <tr><td>98</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;'(')&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;subquery&nbsp;found
</td></tr> </td></tr>
<tr><td>99</td> <tr><td>99</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;trim&nbsp;brackets <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;new&nbsp;Doctrine_Query();
</td></tr> </td></tr>
<tr><td>100</td> <tr><td>100</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$trimmed&nbsp;&nbsp;&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim($value); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;$this-&gt;query-&gt;createSubquery()-&gt;parseQuery($trimmed,&nbsp;false)-&gt;getQuery()&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>101</td> <tr><td>101</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>102</td> <tr><td>102</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'FROM'&nbsp;|| <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'SQL:')&nbsp;{
</td></tr> </td></tr>
<tr><td>103</td> <tr><td>103</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;substr($trimmed,&nbsp;0,&nbsp;6)&nbsp;==&nbsp;'SELECT')&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;substr($trimmed,&nbsp;4)&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>104</td> <tr><td>104</td>
<td class="normal"> <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>105</td> <tr><td>105</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;subquery&nbsp;found <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;simple&nbsp;in&nbsp;expression&nbsp;found
</td></tr> </td></tr>
<tr><td>106</td> <tr><td>106</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;new&nbsp;Doctrine_Query(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::sqlExplode($trimmed,&nbsp;',');
</td></tr> </td></tr>
<tr><td>107</td> <tr><td>107</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;$q-&gt;isSubquery(true)-&gt;parseQuery($trimmed)-&gt;getQuery()&nbsp;.&nbsp;')'; <td class="normal">
</td></tr> </td></tr>
<tr><td>108</td> <tr><td>108</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>109</td> <tr><td>109</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'SQL:')&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>110</td> <tr><td>110</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;substr($trimmed,&nbsp;4)&nbsp;.&nbsp;')'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;false;
</td></tr> </td></tr>
<tr><td>111</td> <tr><td>111</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>112</td> <tr><td>112</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;simple&nbsp;in&nbsp;expression&nbsp;found <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$part)&nbsp;{
</td></tr> </td></tr>
<tr><td>113</td> <tr><td>113</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::sqlExplode($trimmed,&nbsp;','); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{
</td></tr> </td></tr>
<tr><td>114</td> <tr><td>114</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($part,&nbsp;&quot;'&quot;));
</td></tr> </td></tr>
<tr><td>115</td> <tr><td>115</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>116</td> <tr><td>116</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>117</td> <tr><td>117</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($index&nbsp;!==&nbsp;false)&nbsp;{
</td></tr> </td></tr>
<tr><td>118</td> <tr><td>118</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$index;
</td></tr> </td></tr>
<tr><td>119</td> <tr><td>119</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$part)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>120</td> <tr><td>120</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$this-&gt;parseLiteralValue($part);
</td></tr> </td></tr>
<tr><td>121</td> <tr><td>121</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($part,&nbsp;&quot;'&quot;)); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>122</td> <tr><td>122</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>123</td> <tr><td>123</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>124</td> <tr><td>124</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($index&nbsp;!==&nbsp;false)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$value)&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>125</td> <tr><td>125</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$index; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>126</td> <tr><td>126</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;':'&nbsp;||&nbsp;$value&nbsp;===&nbsp;'?')&nbsp;{
</td></tr> </td></tr>
<tr><td>127</td> <tr><td>127</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$this-&gt;parseLiteralValue($part); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;placeholder&nbsp;found
</td></tr> </td></tr>
<tr><td>128</td> <tr><td>128</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field)&nbsp;&amp;&amp;&nbsp;$table-&gt;getTypeOf($field)&nbsp;==&nbsp;'enum')&nbsp;{
</td></tr> </td></tr>
<tr><td>129</td> <tr><td>129</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;$table,&nbsp;$field);
</td></tr> </td></tr>
<tr><td>130</td> <tr><td>130</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>131</td> <tr><td>131</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$value)&nbsp;.&nbsp;')'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;null,&nbsp;null);
</td></tr> </td></tr>
<tr><td>132</td> <tr><td>132</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>133</td> <tr><td>133</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;':'&nbsp;||&nbsp;$value&nbsp;===&nbsp;'?')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>134</td> <tr><td>134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;placeholder&nbsp;found <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;false;
</td></tr> </td></tr>
<tr><td>135</td> <tr><td>135</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field)&nbsp;&amp;&amp;&nbsp;$table-&gt;getTypeOf($field)&nbsp;==&nbsp;'enum')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{
</td></tr> </td></tr>
<tr><td>136</td> <tr><td>136</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;$table,&nbsp;$field); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;check&nbsp;if&nbsp;value&nbsp;is&nbsp;enumerated&nbsp;value
</td></tr> </td></tr>
<tr><td>137</td> <tr><td>137</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($value,&nbsp;&quot;'&quot;));
</td></tr> </td></tr>
<tr><td>138</td> <tr><td>138</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;null,&nbsp;null); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>139</td> <tr><td>139</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>140</td> <tr><td>140</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($enumIndex&nbsp;!==&nbsp;false)&nbsp;{
</td></tr> </td></tr>
<tr><td>141</td> <tr><td>141</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$enumIndex;
</td></tr> </td></tr>
<tr><td>142</td> <tr><td>142</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>143</td> <tr><td>143</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;check&nbsp;if&nbsp;value&nbsp;is&nbsp;enumerated&nbsp;value <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$this-&gt;parseLiteralValue($value);
</td></tr> </td></tr>
<tr><td>144</td> <tr><td>144</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($value,&nbsp;&quot;'&quot;)); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>145</td> <tr><td>145</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>146</td> <tr><td>146</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$value;
</td></tr> </td></tr>
<tr><td>147</td> <tr><td>147</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($enumIndex&nbsp;!==&nbsp;false)&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>148</td> <tr><td>148</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$enumIndex; <td class="normal">
</td></tr> </td></tr>
<tr><td>149</td> <tr><td>149</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>150</td> <tr><td>150</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$this-&gt;parseLiteralValue($value); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parses&nbsp;an&nbsp;EXISTS&nbsp;expression
</td></tr> </td></tr>
<tr><td>151</td> <tr><td>151</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>152</td> <tr><td>152</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$where&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;where&nbsp;part&nbsp;to&nbsp;be&nbsp;parsed
</td></tr> </td></tr>
<tr><td>153</td> <tr><td>153</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$value; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;boolean&nbsp;$negation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;use&nbsp;the&nbsp;NOT&nbsp;keyword
</td></tr> </td></tr>
<tr><td>154</td> <tr><td>154</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr> </td></tr>
<tr><td>155</td> <tr><td>155</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>156</td> <tr><td>156</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseExists($where,&nbsp;$negation)
</td></tr> </td></tr>
<tr><td>157</td> <tr><td>157</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parses&nbsp;an&nbsp;EXISTS&nbsp;expression <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>158</td> <tr><td>158</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;=&nbsp;($negation)&nbsp;?&nbsp;'EXISTS'&nbsp;:&nbsp;'NOT&nbsp;EXISTS';
</td></tr> </td></tr>
<tr><td>159</td> <tr><td>159</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$where&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;where&nbsp;part&nbsp;to&nbsp;be&nbsp;parsed <td class="normal">
</td></tr> </td></tr>
<tr><td>160</td> <tr><td>160</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;boolean&nbsp;$negation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;use&nbsp;the&nbsp;NOT&nbsp;keyword <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$pos&nbsp;=&nbsp;strpos($where,&nbsp;'(');
</td></tr> </td></tr>
<tr><td>161</td> <tr><td>161</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string <td class="normal">
</td></tr> </td></tr>
<tr><td>162</td> <tr><td>162</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($pos&nbsp;==&nbsp;false)&nbsp;{
</td></tr> </td></tr>
<tr><td>163</td> <tr><td>163</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseExists($where,&nbsp;$negation) <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Query_Exception('Unknown&nbsp;expression,&nbsp;expected&nbsp;a&nbsp;subquery&nbsp;with&nbsp;()&nbsp;-marks');
</td></tr> </td></tr>
<tr><td>164</td> <tr><td>164</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>165</td> <tr><td>165</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;=&nbsp;($negation)&nbsp;?&nbsp;'EXISTS'&nbsp;:&nbsp;'NOT&nbsp;EXISTS'; <td class="normal">
</td></tr> </td></tr>
<tr><td>166</td> <tr><td>166</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sub&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim(substr($where,&nbsp;$pos));
</td></tr> </td></tr>
<tr><td>167</td> <tr><td>167</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$pos&nbsp;=&nbsp;strpos($where,&nbsp;'('); <td class="normal">
</td></tr> </td></tr>
<tr><td>168</td> <tr><td>168</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$operator&nbsp;.&nbsp;'&nbsp;('&nbsp;.&nbsp;$this-&gt;query-&gt;createSubquery()-&gt;parseQuery($sub,&nbsp;false)-&gt;getQuery()&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>169</td> <tr><td>169</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($pos&nbsp;==&nbsp;false)&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>170</td> <tr><td>170</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Query_Exception('Unknown&nbsp;expression,&nbsp;expected&nbsp;a&nbsp;subquery&nbsp;with&nbsp;()&nbsp;-marks'); <td class="normal">}
</td></tr>
<tr><td>171</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>172</td>
<td class="normal">
</td></tr>
<tr><td>173</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sub&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim(substr($where,&nbsp;$pos));
</td></tr>
<tr><td>174</td>
<td class="normal">
</td></tr>
<tr><td>175</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$operator&nbsp;.&nbsp;'&nbsp;('&nbsp;.&nbsp;$this-&gt;query-&gt;createSubquery()-&gt;parseQuery($sub,&nbsp;false)-&gt;getQuery()&nbsp;.&nbsp;')';
</td></tr>
<tr><td>176</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>177</td>
<td class="covered">}</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -169,409 +169,409 @@ ...@@ -169,409 +169,409 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($queryPartName&nbsp;==&nbsp;'select')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($queryPartName&nbsp;==&nbsp;'select')&nbsp;{
</td></tr> </td></tr>
<tr><td>54</td> <tr><td>54</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_match_all('/{([^}{]*)}/U',&nbsp;$queryPart,&nbsp;$m); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parseSelectFields($queryPart);
</td></tr> </td></tr>
<tr><td>55</td> <tr><td>55</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this;
</td></tr> </td></tr>
<tr><td>56</td> <tr><td>56</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;fields&nbsp;=&nbsp;$m[1]; <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>57</td> <tr><td>57</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts['select']&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;!&nbsp;isset($this-&gt;parts[$queryPartName]))&nbsp;{
</td></tr> </td></tr>
<tr><td>58</td> <tr><td>58</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts[$queryPartName]&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>59</td> <tr><td>59</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$append)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>60</td> <tr><td>60</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts[$queryPartName]&nbsp;=&nbsp;array($queryPart); <td class="normal">
</td></tr> </td></tr>
<tr><td>61</td> <tr><td>61</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!&nbsp;$append)&nbsp;{
</td></tr> </td></tr>
<tr><td>62</td> <tr><td>62</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts[$queryPartName][]&nbsp;=&nbsp;$queryPart; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts[$queryPartName]&nbsp;=&nbsp;array($queryPart);
</td></tr> </td></tr>
<tr><td>63</td> <tr><td>63</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}else&nbsp;{
</td></tr> </td></tr>
<tr><td>64</td> <tr><td>64</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts[$queryPartName][]&nbsp;=&nbsp;$queryPart;
</td></tr> </td></tr>
<tr><td>65</td> <tr><td>65</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>66</td> <tr><td>66</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this;
</td></tr> </td></tr>
<tr><td>67</td> <tr><td>67</td>
<td class="normal"> <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>68</td> <tr><td>68</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">
</td></tr> </td></tr>
<tr><td>69</td> <tr><td>69</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parseQuery <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>70</td> <tr><td>70</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parses&nbsp;an&nbsp;sql&nbsp;query&nbsp;and&nbsp;adds&nbsp;the&nbsp;parts&nbsp;to&nbsp;internal&nbsp;array <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Add&nbsp;select&nbsp;parts&nbsp;to&nbsp;fields
</td></tr> </td></tr>
<tr><td>71</td> <tr><td>71</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>72</td> <tr><td>72</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$query&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;to&nbsp;be&nbsp;parsed <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;$queryPart&nbsp;sting&nbsp;The&nbsp;name&nbsp;of&nbsp;the&nbsp;querypart
</td></tr> </td></tr>
<tr><td>73</td> <tr><td>73</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;Doctrine_RawSql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;object <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>74</td> <tr><td>74</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;parseSelectFields($queryPart){
</td></tr> </td></tr>
<tr><td>75</td> <tr><td>75</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseQuery($query) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_match_all('/{([^}{]*)}/U',&nbsp;$queryPart,&nbsp;$m);
</td></tr> </td></tr>
<tr><td>76</td> <tr><td>76</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;fields&nbsp;=&nbsp;$m[1];
</td></tr> </td></tr>
<tr><td>77</td> <tr><td>77</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preg_match_all('/{([^}{]*)}/U',&nbsp;$query,&nbsp;$m); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts['select']&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>78</td> <tr><td>78</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>79</td> <tr><td>79</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;fields&nbsp;=&nbsp;$m[1]; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>80</td> <tr><td>80</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;clear(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parseQuery
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parses&nbsp;an&nbsp;sql&nbsp;query&nbsp;and&nbsp;adds&nbsp;the&nbsp;parts&nbsp;to&nbsp;internal&nbsp;array
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>82</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::sqlExplode($query,'&nbsp;'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>83</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$query&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;to&nbsp;be&nbsp;parsed
</td></tr> </td></tr>
<tr><td>84</td> <tr><td>84</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$k&nbsp;=&gt;&nbsp;$part)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;Doctrine_RawSql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;object
</td></tr> </td></tr>
<tr><td>85</td> <tr><td>85</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$low&nbsp;=&nbsp;strtolower($part); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>86</td> <tr><td>86</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch&nbsp;(strtolower($part))&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseQuery($query)
</td></tr> </td></tr>
<tr><td>87</td> <tr><td>87</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'select': <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>88</td> <tr><td>88</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'from': <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parseSelectFields($query);
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>89</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'where': <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;clear();
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>90</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'limit': <td class="normal">
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>91</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'offset': <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tokens&nbsp;=&nbsp;Doctrine_Tokenizer::sqlExplode($query,'&nbsp;');
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>92</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'having': <td class="normal">
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>93</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p&nbsp;=&nbsp;$low; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>94</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($parts[$low]))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($tokens&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$part)&nbsp;{
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>95</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$low]&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$partLowerCase&nbsp;=&nbsp;strtolower($part);
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>96</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch&nbsp;($partLowerCase)&nbsp;{
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>97</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'select':
</td></tr> </td></tr>
<tr><td>98</td> <tr><td>98</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'order': <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'from':
</td></tr> </td></tr>
<tr><td>99</td> <tr><td>99</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'group': <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'where':
</td></tr> </td></tr>
<tr><td>100</td> <tr><td>100</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$i&nbsp;=&nbsp;($k&nbsp;+&nbsp;1); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'limit':
</td></tr> </td></tr>
<tr><td>101</td> <tr><td>101</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($e[$i])&nbsp;&amp;&amp;&nbsp;strtolower($e[$i])&nbsp;===&nbsp;'by')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'offset':
</td></tr> </td></tr>
<tr><td>102</td> <tr><td>102</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p&nbsp;=&nbsp;$low; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'having':
</td></tr> </td></tr>
<tr><td>103</td> <tr><td>103</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$p&nbsp;.=&nbsp;'by'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$type&nbsp;=&nbsp;$partLowerCase;
</td></tr> </td></tr>
<tr><td>104</td> <tr><td>104</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$low&nbsp;.&nbsp;'by']&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($parts[$partLowerCase]))&nbsp;{
</td></tr> </td></tr>
<tr><td>105</td> <tr><td>105</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$partLowerCase]&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>106</td> <tr><td>106</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>107</td> <tr><td>107</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$p][]&nbsp;=&nbsp;$part; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
</td></tr> </td></tr>
<tr><td>108</td> <tr><td>108</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'order':
</td></tr> </td></tr>
<tr><td>109</td> <tr><td>109</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'group':
</td></tr> </td></tr>
<tr><td>110</td> <tr><td>110</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'by': <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$i&nbsp;=&nbsp;$key&nbsp;+&nbsp;1;
</td></tr> </td></tr>
<tr><td>111</td> <tr><td>111</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($tokens[$i])&nbsp;&amp;&amp;&nbsp;strtolower($tokens[$i])&nbsp;===&nbsp;'by')&nbsp;{
</td></tr> </td></tr>
<tr><td>112</td> <tr><td>112</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default: <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$type&nbsp;=&nbsp;$partLowerCase&nbsp;.&nbsp;'by';
</td></tr> </td></tr>
<tr><td>113</td> <tr><td>113</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($parts[$p][0]))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$type]&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>114</td> <tr><td>114</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$p][0]&nbsp;=&nbsp;$part; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>115</td> <tr><td>115</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//not&nbsp;a&nbsp;keyword&nbsp;so&nbsp;we&nbsp;add&nbsp;it&nbsp;to&nbsp;the&nbsp;previous&nbsp;type
</td></tr> </td></tr>
<tr><td>116</td> <tr><td>116</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$p][0]&nbsp;.=&nbsp;'&nbsp;'.$part; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$type][]&nbsp;=&nbsp;$part;
</td></tr> </td></tr>
<tr><td>117</td> <tr><td>117</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>118</td> <tr><td>118</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
</td></tr> </td></tr>
<tr><td>119</td> <tr><td>119</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;'by':
</td></tr> </td></tr>
<tr><td>120</td> <tr><td>120</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;
</td></tr> </td></tr>
<tr><td>121</td> <tr><td>121</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts&nbsp;=&nbsp;$parts; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:
</td></tr> </td></tr>
<tr><td>122</td> <tr><td>122</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts['select']&nbsp;=&nbsp;array(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//not&nbsp;a&nbsp;keyword&nbsp;so&nbsp;we&nbsp;add&nbsp;it&nbsp;to&nbsp;the&nbsp;previous&nbsp;type.
</td></tr> </td></tr>
<tr><td>123</td> <tr><td>123</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($parts[$type][0]))&nbsp;{
</td></tr> </td></tr>
<tr><td>124</td> <tr><td>124</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$type][0]&nbsp;=&nbsp;$part;
</td></tr> </td></tr>
<tr><td>125</td> <tr><td>125</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>126</td> <tr><td>126</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;why&nbsp;does&nbsp;this&nbsp;add&nbsp;to&nbsp;index&nbsp;0&nbsp;and&nbsp;not&nbsp;append&nbsp;to&nbsp;the&nbsp;
</td></tr> </td></tr>
<tr><td>127</td> <tr><td>127</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;array.&nbsp;If&nbsp;it&nbsp;had&nbsp;done&nbsp;that&nbsp;one&nbsp;could&nbsp;have&nbsp;used&nbsp;
</td></tr> </td></tr>
<tr><td>128</td> <tr><td>128</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getQuery <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;parseQueryPart.
</td></tr> </td></tr>
<tr><td>129</td> <tr><td>129</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;builds&nbsp;the&nbsp;sql&nbsp;query&nbsp;from&nbsp;the&nbsp;given&nbsp;query&nbsp;parts <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parts[$type][0]&nbsp;.=&nbsp;'&nbsp;'.$part;
</td></tr> </td></tr>
<tr><td>130</td> <tr><td>130</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>131</td> <tr><td>131</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;built&nbsp;sql&nbsp;query <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>132</td> <tr><td>132</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>133</td> <tr><td>133</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getQuery() <td class="normal">
</td></tr> </td></tr>
<tr><td>134</td> <tr><td>134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts&nbsp;=&nbsp;$parts;
</td></tr> </td></tr>
<tr><td>135</td> <tr><td>135</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts['select']&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>136</td> <tr><td>136</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>137</td> <tr><td>137</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;fields&nbsp;as&nbsp;$field)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this;
</td></tr> </td></tr>
<tr><td>138</td> <tr><td>138</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;explode('.',&nbsp;$field); <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>139</td> <tr><td>139</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($e[1]))&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>140</td> <tr><td>140</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_RawSql_Exception('All&nbsp;selected&nbsp;fields&nbsp;in&nbsp;Sql&nbsp;query&nbsp;must&nbsp;be&nbsp;in&nbsp;format&nbsp;tableAlias.fieldName'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>141</td> <tr><td>141</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getQuery
</td></tr> </td></tr>
<tr><td>142</td> <tr><td>142</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;try&nbsp;to&nbsp;auto-add&nbsp;component <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;builds&nbsp;the&nbsp;sql&nbsp;query&nbsp;from&nbsp;the&nbsp;given&nbsp;query&nbsp;parts
</td></tr> </td></tr>
<tr><td>143</td> <tr><td>143</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$this-&gt;hasTableAlias($e[0]))&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>144</td> <tr><td>144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;built&nbsp;sql&nbsp;query
</td></tr> </td></tr>
<tr><td>145</td> <tr><td>145</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;addComponent($e[0],&nbsp;ucwords($e[0])); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>146</td> <tr><td>146</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(Doctrine_Exception&nbsp;$exception)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getQuery()
</td></tr> </td></tr>
<tr><td>147</td> <tr><td>147</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_RawSql_Exception('The&nbsp;associated&nbsp;component&nbsp;for&nbsp;table&nbsp;alias&nbsp;'&nbsp;.&nbsp;$e[0]&nbsp;.&nbsp;'&nbsp;couldn\'t&nbsp;be&nbsp;found.'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>148</td> <tr><td>148</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>149</td> <tr><td>149</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>150</td> <tr><td>150</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;fields&nbsp;as&nbsp;$field)&nbsp;{
</td></tr> </td></tr>
<tr><td>151</td> <tr><td>151</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;$this-&gt;getComponentAlias($e[0]); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;explode('.',&nbsp;$field);
</td></tr> </td></tr>
<tr><td>152</td> <tr><td>152</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($e[1]))&nbsp;{
</td></tr> </td></tr>
<tr><td>153</td> <tr><td>153</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e[1]&nbsp;==&nbsp;'*')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_RawSql_Exception('All&nbsp;selected&nbsp;fields&nbsp;in&nbsp;Sql&nbsp;query&nbsp;must&nbsp;be&nbsp;in&nbsp;format&nbsp;tableAlias.fieldName');
</td></tr> </td></tr>
<tr><td>154</td> <tr><td>154</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;_aliasMap[$componentAlias]['table']-&gt;getColumnNames()&nbsp;as&nbsp;$name)&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>155</td> <tr><td>155</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field&nbsp;=&nbsp;$e[0]&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$name; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;try&nbsp;to&nbsp;auto-add&nbsp;component
</td></tr> </td></tr>
<tr><td>156</td> <tr><td>156</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$this-&gt;hasTableAlias($e[0]))&nbsp;{
</td></tr> </td></tr>
<tr><td>157</td> <tr><td>157</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select[$componentAlias][$field]&nbsp;=&nbsp;$field&nbsp;.&nbsp;'&nbsp;AS&nbsp;'&nbsp;.&nbsp;$e[0]&nbsp;.&nbsp;'__'&nbsp;.&nbsp;$name; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{
</td></tr> </td></tr>
<tr><td>158</td> <tr><td>158</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;addComponent($e[0],&nbsp;ucwords($e[0]));
</td></tr> </td></tr>
<tr><td>159</td> <tr><td>159</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(Doctrine_Exception&nbsp;$exception)&nbsp;{
</td></tr> </td></tr>
<tr><td>160</td> <tr><td>160</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field&nbsp;=&nbsp;$e[0]&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$e[1]; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_RawSql_Exception('The&nbsp;associated&nbsp;component&nbsp;for&nbsp;table&nbsp;alias&nbsp;'&nbsp;.&nbsp;$e[0]&nbsp;.&nbsp;'&nbsp;couldn\'t&nbsp;be&nbsp;found.');
</td></tr> </td></tr>
<tr><td>161</td> <tr><td>161</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select[$componentAlias][$field]&nbsp;=&nbsp;$field&nbsp;.&nbsp;'&nbsp;AS&nbsp;'&nbsp;.&nbsp;$e[0]&nbsp;.&nbsp;'__'&nbsp;.&nbsp;$e[1]; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>162</td> <tr><td>162</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>163</td> <tr><td>163</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>164</td> <tr><td>164</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;$this-&gt;getComponentAlias($e[0]);
</td></tr> </td></tr>
<tr><td>165</td> <tr><td>165</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;force-add&nbsp;all&nbsp;primary&nbsp;key&nbsp;fields <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>166</td> <tr><td>166</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e[1]&nbsp;==&nbsp;'*')&nbsp;{
</td></tr> </td></tr>
<tr><td>167</td> <tr><td>167</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;getTableAliases()&nbsp;as&nbsp;$tableAlias&nbsp;=&gt;&nbsp;$componentAlias)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;_aliasMap[$componentAlias]['table']-&gt;getColumnNames()&nbsp;as&nbsp;$name)&nbsp;{
</td></tr> </td></tr>
<tr><td>168</td> <tr><td>168</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$map&nbsp;=&nbsp;$this-&gt;_aliasMap[$componentAlias]; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field&nbsp;=&nbsp;$e[0]&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$name;
</td></tr> </td></tr>
<tr><td>169</td> <tr><td>169</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>170</td> <tr><td>170</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;((array)&nbsp;$map['table']-&gt;getIdentifier()&nbsp;as&nbsp;$key)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select[$componentAlias][$field]&nbsp;=&nbsp;$field&nbsp;.&nbsp;'&nbsp;AS&nbsp;'&nbsp;.&nbsp;$e[0]&nbsp;.&nbsp;'__'&nbsp;.&nbsp;$name;
</td></tr> </td></tr>
<tr><td>171</td> <tr><td>171</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field&nbsp;=&nbsp;$tableAlias&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$key; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>172</td> <tr><td>172</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>173</td> <tr><td>173</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($this-&gt;parts['select'][$field]))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field&nbsp;=&nbsp;$e[0]&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$e[1];
</td></tr> </td></tr>
<tr><td>174</td> <tr><td>174</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select[$componentAlias][$field]&nbsp;=&nbsp;$field&nbsp;.&nbsp;'&nbsp;AS&nbsp;'&nbsp;.&nbsp;$tableAlias&nbsp;.&nbsp;'__'&nbsp;.&nbsp;$key; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select[$componentAlias][$field]&nbsp;=&nbsp;$field&nbsp;.&nbsp;'&nbsp;AS&nbsp;'&nbsp;.&nbsp;$e[0]&nbsp;.&nbsp;'__'&nbsp;.&nbsp;$e[1];
</td></tr> </td></tr>
<tr><td>175</td> <tr><td>175</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>176</td> <tr><td>176</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>177</td> <tr><td>177</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>178</td> <tr><td>178</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;force-add&nbsp;all&nbsp;primary&nbsp;key&nbsp;fields
</td></tr> </td></tr>
<tr><td>179</td> <tr><td>179</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;first&nbsp;add&nbsp;the&nbsp;fields&nbsp;of&nbsp;the&nbsp;root&nbsp;component <td class="normal">
</td></tr> </td></tr>
<tr><td>180</td> <tr><td>180</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reset($this-&gt;_aliasMap); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;getTableAliases()&nbsp;as&nbsp;$tableAlias&nbsp;=&gt;&nbsp;$componentAlias)&nbsp;{
</td></tr> </td></tr>
<tr><td>181</td> <tr><td>181</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;key($this-&gt;_aliasMap); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$map&nbsp;=&nbsp;$this-&gt;_aliasMap[$componentAlias];
</td></tr> </td></tr>
<tr><td>182</td> <tr><td>182</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>183</td> <tr><td>183</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;=&nbsp;'SELECT&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$select[$componentAlias]); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;((array)&nbsp;$map['table']-&gt;getIdentifier()&nbsp;as&nbsp;$key)&nbsp;{
</td></tr> </td></tr>
<tr><td>184</td> <tr><td>184</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($select[$componentAlias]); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field&nbsp;=&nbsp;$tableAlias&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$key;
</td></tr> </td></tr>
<tr><td>185</td> <tr><td>185</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>186</td> <tr><td>186</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($select&nbsp;as&nbsp;$component&nbsp;=&gt;&nbsp;$fields)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($this-&gt;parts['select'][$field]))&nbsp;{
</td></tr> </td></tr>
<tr><td>187</td> <tr><td>187</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($fields))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$select[$componentAlias][$field]&nbsp;=&nbsp;$field&nbsp;.&nbsp;'&nbsp;AS&nbsp;'&nbsp;.&nbsp;$tableAlias&nbsp;.&nbsp;'__'&nbsp;.&nbsp;$key;
</td></tr> </td></tr>
<tr><td>188</td> <tr><td>188</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;',&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$fields); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>189</td> <tr><td>189</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
...@@ -580,290 +580,330 @@ ...@@ -580,290 +580,330 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>191</td> <tr><td>191</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>192</td> <tr><td>192</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$string&nbsp;=&nbsp;$this-&gt;applyInheritance(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;first&nbsp;add&nbsp;the&nbsp;fields&nbsp;of&nbsp;the&nbsp;root&nbsp;component
</td></tr> </td></tr>
<tr><td>193</td> <tr><td>193</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($string))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reset($this-&gt;_aliasMap);
</td></tr> </td></tr>
<tr><td>194</td> <tr><td>194</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts['where'][]&nbsp;=&nbsp;$string; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;key($this-&gt;_aliasMap);
</td></tr> </td></tr>
<tr><td>195</td> <tr><td>195</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>196</td> <tr><td>196</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$copy&nbsp;=&nbsp;$this-&gt;parts; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;=&nbsp;'SELECT&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$select[$componentAlias]);
</td></tr> </td></tr>
<tr><td>197</td> <tr><td>197</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($copy['select']); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($select[$componentAlias]);
</td></tr> </td></tr>
<tr><td>198</td> <tr><td>198</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>199</td> <tr><td>199</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['from']))?&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;FROM&nbsp;'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;implode('&nbsp;',&nbsp;$this-&gt;parts['from'])&nbsp;:&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($select&nbsp;as&nbsp;$component&nbsp;=&gt;&nbsp;$fields)&nbsp;{
</td></tr> </td></tr>
<tr><td>200</td> <tr><td>200</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['where']))?&nbsp;&nbsp;&nbsp;'&nbsp;WHERE&nbsp;'&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;implode('&nbsp;AND&nbsp;',&nbsp;$this-&gt;parts['where'])&nbsp;:&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($fields))&nbsp;{
</td></tr> </td></tr>
<tr><td>201</td> <tr><td>201</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['groupby']))?&nbsp;'&nbsp;GROUP&nbsp;BY&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$this-&gt;parts['groupby'])&nbsp;:&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;',&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$fields);
</td></tr> </td></tr>
<tr><td>202</td> <tr><td>202</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['having']))?&nbsp;&nbsp;'&nbsp;HAVING&nbsp;'&nbsp;&nbsp;&nbsp;.&nbsp;implode('&nbsp;AND&nbsp;',&nbsp;$this-&gt;parts['having'])&nbsp;:&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>203</td> <tr><td>203</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['orderby']))?&nbsp;'&nbsp;ORDER&nbsp;BY&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$this-&gt;parts['orderby'])&nbsp;:&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>204</td> <tr><td>204</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['limit']))?&nbsp;&nbsp;&nbsp;'&nbsp;LIMIT&nbsp;'&nbsp;.&nbsp;implode('&nbsp;',&nbsp;$this-&gt;parts['limit'])&nbsp;:&nbsp;''; <td class="normal">
</td></tr> </td></tr>
<tr><td>205</td> <tr><td>205</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['offset']))?&nbsp;&nbsp;'&nbsp;OFFSET&nbsp;'&nbsp;.&nbsp;implode('&nbsp;',&nbsp;$this-&gt;parts['offset'])&nbsp;:&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$string&nbsp;=&nbsp;$this-&gt;applyInheritance();
</td></tr> </td></tr>
<tr><td>206</td> <tr><td>206</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($string))&nbsp;{
</td></tr> </td></tr>
<tr><td>207</td> <tr><td>207</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($string))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;parts['where'][]&nbsp;=&nbsp;$string;
</td></tr> </td></tr>
<tr><td>208</td> <tr><td>208</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array_pop($this-&gt;parts['where']); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>209</td> <tr><td>209</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$copy&nbsp;=&nbsp;$this-&gt;parts;
</td></tr> </td></tr>
<tr><td>210</td> <tr><td>210</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$q; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($copy['select']);
</td></tr> </td></tr>
<tr><td>211</td> <tr><td>211</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>212</td> <tr><td>212</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['from']))?&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;FROM&nbsp;'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;implode('&nbsp;',&nbsp;$this-&gt;parts['from'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>213</td> <tr><td>213</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['where']))?&nbsp;&nbsp;&nbsp;'&nbsp;WHERE&nbsp;'&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;implode('&nbsp;AND&nbsp;',&nbsp;$this-&gt;parts['where'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>214</td> <tr><td>214</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getFields <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['groupby']))?&nbsp;'&nbsp;GROUP&nbsp;BY&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$this-&gt;parts['groupby'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>215</td> <tr><td>215</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;fields&nbsp;associated&nbsp;with&nbsp;this&nbsp;parser <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['having']))?&nbsp;&nbsp;'&nbsp;HAVING&nbsp;'&nbsp;&nbsp;&nbsp;.&nbsp;implode('&nbsp;AND&nbsp;',&nbsp;$this-&gt;parts['having'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>216</td> <tr><td>216</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['orderby']))?&nbsp;'&nbsp;ORDER&nbsp;BY&nbsp;'&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$this-&gt;parts['orderby'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>217</td> <tr><td>217</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;&nbsp;&nbsp;&nbsp;all&nbsp;the&nbsp;fields&nbsp;associated&nbsp;with&nbsp;this&nbsp;parser <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['limit']))?&nbsp;&nbsp;&nbsp;'&nbsp;LIMIT&nbsp;'&nbsp;.&nbsp;implode('&nbsp;',&nbsp;$this-&gt;parts['limit'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>218</td> <tr><td>218</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;.=&nbsp;(&nbsp;!&nbsp;empty($this-&gt;parts['offset']))?&nbsp;&nbsp;'&nbsp;OFFSET&nbsp;'&nbsp;.&nbsp;implode('&nbsp;',&nbsp;$this-&gt;parts['offset'])&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>219</td> <tr><td>219</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getFields() <td class="normal">
</td></tr> </td></tr>
<tr><td>220</td> <tr><td>220</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($string))&nbsp;{
</td></tr> </td></tr>
<tr><td>221</td> <tr><td>221</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;fields; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array_pop($this-&gt;parts['where']);
</td></tr> </td></tr>
<tr><td>222</td> <tr><td>222</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>223</td> <tr><td>223</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$q;
</td></tr> </td></tr>
<tr><td>224</td> <tr><td>224</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>225</td> <tr><td>225</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;addComponent <td class="normal">
</td></tr> </td></tr>
<tr><td>226</td> <tr><td>226</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>227</td> <tr><td>227</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$tableAlias <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getFields
</td></tr> </td></tr>
<tr><td>228</td> <tr><td>228</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$componentName <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;fields&nbsp;associated&nbsp;with&nbsp;this&nbsp;parser
</td></tr> </td></tr>
<tr><td>229</td> <tr><td>229</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;Doctrine_RawSql <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>230</td> <tr><td>230</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;&nbsp;&nbsp;&nbsp;all&nbsp;the&nbsp;fields&nbsp;associated&nbsp;with&nbsp;this&nbsp;parser
</td></tr> </td></tr>
<tr><td>231</td> <tr><td>231</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;addComponent($tableAlias,&nbsp;$path) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>232</td> <tr><td>232</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getFields()
</td></tr> </td></tr>
<tr><td>233</td> <tr><td>233</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;explode('&nbsp;',&nbsp;$path); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>234</td> <tr><td>234</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$originalAlias&nbsp;=&nbsp;(count($tmp)&nbsp;&gt;&nbsp;1)&nbsp;?&nbsp;end($tmp)&nbsp;:&nbsp;null; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;fields;
</td></tr> </td></tr>
<tr><td>235</td> <tr><td>235</td>
<td class="normal"> <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>236</td> <tr><td>236</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;explode('.',&nbsp;$tmp[0]); <td class="normal">
</td></tr> </td></tr>
<tr><td>237</td> <tr><td>237</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>238</td> <tr><td>238</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fullPath&nbsp;=&nbsp;$tmp[0]; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;addComponent
</td></tr> </td></tr>
<tr><td>239</td> <tr><td>239</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fullLength&nbsp;=&nbsp;strlen($fullPath); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>240</td> <tr><td>240</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$tableAlias
</td></tr> </td></tr>
<tr><td>241</td> <tr><td>241</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;null; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$componentName
</td></tr> </td></tr>
<tr><td>242</td> <tr><td>242</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;Doctrine_RawSql
</td></tr> </td></tr>
<tr><td>243</td> <tr><td>243</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$currPath&nbsp;=&nbsp;''; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>244</td> <tr><td>244</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;addComponent($tableAlias,&nbsp;$path)
</td></tr> </td></tr>
<tr><td>245</td> <tr><td>245</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($this-&gt;_aliasMap[$e[0]]))&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>246</td> <tr><td>246</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;$this-&gt;_aliasMap[$e[0]]['table']; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;explode('&nbsp;',&nbsp;$path);
</td></tr> </td></tr>
<tr><td>247</td> <tr><td>247</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$originalAlias&nbsp;=&nbsp;(count($tmp)&nbsp;&gt;&nbsp;1)&nbsp;?&nbsp;end($tmp)&nbsp;:&nbsp;null;
</td></tr> </td></tr>
<tr><td>248</td> <tr><td>248</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$currPath&nbsp;=&nbsp;$parent&nbsp;=&nbsp;array_shift($e); <td class="normal">
</td></tr> </td></tr>
<tr><td>249</td> <tr><td>249</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;explode('.',&nbsp;$tmp[0]);
</td></tr> </td></tr>
<tr><td>250</td> <tr><td>250</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>251</td> <tr><td>251</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$k&nbsp;=&gt;&nbsp;$component)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fullPath&nbsp;=&nbsp;$tmp[0];
</td></tr> </td></tr>
<tr><td>252</td> <tr><td>252</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;get&nbsp;length&nbsp;of&nbsp;the&nbsp;previous&nbsp;path <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fullLength&nbsp;=&nbsp;strlen($fullPath);
</td></tr> </td></tr>
<tr><td>253</td> <tr><td>253</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$length&nbsp;=&nbsp;strlen($currPath); <td class="normal">
</td></tr> </td></tr>
<tr><td>254</td> <tr><td>254</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;null;
</td></tr> </td></tr>
<tr><td>255</td> <tr><td>255</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;build&nbsp;the&nbsp;current&nbsp;component&nbsp;path <td class="normal">
</td></tr> </td></tr>
<tr><td>256</td> <tr><td>256</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$currPath&nbsp;=&nbsp;($currPath)&nbsp;?&nbsp;$currPath&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$component&nbsp;:&nbsp;$component; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$currPath&nbsp;=&nbsp;'';
</td></tr> </td></tr>
<tr><td>257</td> <tr><td>257</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>258</td> <tr><td>258</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$delimeter&nbsp;=&nbsp;substr($fullPath,&nbsp;$length,&nbsp;1); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($this-&gt;_aliasMap[$e[0]]))&nbsp;{
</td></tr> </td></tr>
<tr><td>259</td> <tr><td>259</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;$this-&gt;_aliasMap[$e[0]]['table'];
</td></tr> </td></tr>
<tr><td>260</td> <tr><td>260</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;if&nbsp;an&nbsp;alias&nbsp;is&nbsp;not&nbsp;given&nbsp;use&nbsp;the&nbsp;current&nbsp;path&nbsp;as&nbsp;an&nbsp;alias&nbsp;identifier <td class="normal">
</td></tr> </td></tr>
<tr><td>261</td> <tr><td>261</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(strlen($currPath)&nbsp;===&nbsp;$fullLength&nbsp;&amp;&amp;&nbsp;isset($originalAlias))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$currPath&nbsp;=&nbsp;$parent&nbsp;=&nbsp;array_shift($e);
</td></tr> </td></tr>
<tr><td>262</td> <tr><td>262</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;$originalAlias; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>263</td> <tr><td>263</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>264</td> <tr><td>264</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;$currPath; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$k&nbsp;=&gt;&nbsp;$component)&nbsp;{
</td></tr> </td></tr>
<tr><td>265</td> <tr><td>265</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;get&nbsp;length&nbsp;of&nbsp;the&nbsp;previous&nbsp;path
</td></tr> </td></tr>
<tr><td>266</td> <tr><td>266</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($table))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$length&nbsp;=&nbsp;strlen($currPath);
</td></tr> </td></tr>
<tr><td>267</td> <tr><td>267</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;Doctrine_Manager::getInstance() <td class="normal">
</td></tr> </td></tr>
<tr><td>268</td> <tr><td>268</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&gt;getConnectionForComponent($component); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;build&nbsp;the&nbsp;current&nbsp;component&nbsp;path
</td></tr> </td></tr>
<tr><td>269</td> <tr><td>269</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$currPath&nbsp;=&nbsp;($currPath)&nbsp;?&nbsp;$currPath&nbsp;.&nbsp;'.'&nbsp;.&nbsp;$component&nbsp;:&nbsp;$component;
</td></tr> </td></tr>
<tr><td>270</td> <tr><td>270</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;$conn-&gt;getTable($component); <td class="normal">
</td></tr> </td></tr>
<tr><td>271</td> <tr><td>271</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;_aliasMap[$componentAlias]&nbsp;=&nbsp;array('table'&nbsp;=&gt;&nbsp;$table); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$delimeter&nbsp;=&nbsp;substr($fullPath,&nbsp;$length,&nbsp;1);
</td></tr> </td></tr>
<tr><td>272</td> <tr><td>272</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>273</td> <tr><td>273</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$relation&nbsp;=&nbsp;$table-&gt;getRelation($component); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;if&nbsp;an&nbsp;alias&nbsp;is&nbsp;not&nbsp;given&nbsp;use&nbsp;the&nbsp;current&nbsp;path&nbsp;as&nbsp;an&nbsp;alias&nbsp;identifier
</td></tr> </td></tr>
<tr><td>274</td> <tr><td>274</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(strlen($currPath)&nbsp;===&nbsp;$fullLength&nbsp;&amp;&amp;&nbsp;isset($originalAlias))&nbsp;{
</td></tr> </td></tr>
<tr><td>275</td> <tr><td>275</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;_aliasMap[$componentAlias]&nbsp;=&nbsp;array('table'&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;$relation-&gt;getTable(), <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;$originalAlias;
</td></tr> </td></tr>
<tr><td>276</td> <tr><td>276</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'parent'&nbsp;&nbsp;&nbsp;=&gt;&nbsp;$parent, <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>277</td> <tr><td>277</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'relation'&nbsp;=&gt;&nbsp;$relation); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$componentAlias&nbsp;=&nbsp;$currPath;
</td></tr> </td></tr>
<tr><td>278</td> <tr><td>278</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>279</td> <tr><td>279</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;addTableAlias($tableAlias,&nbsp;$componentAlias); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;isset($table))&nbsp;{
</td></tr> </td></tr>
<tr><td>280</td> <tr><td>280</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;Doctrine_Manager::getInstance()
</td></tr> </td></tr>
<tr><td>281</td> <tr><td>281</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parent&nbsp;=&nbsp;$currPath; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&gt;getConnectionForComponent($component);
</td></tr> </td></tr>
<tr><td>282</td> <tr><td>282</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>283</td> <tr><td>283</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;$conn-&gt;getTable($component);
</td></tr> </td></tr>
<tr><td>284</td> <tr><td>284</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;_aliasMap[$componentAlias]&nbsp;=&nbsp;array('table'&nbsp;=&gt;&nbsp;$table);
</td></tr> </td></tr>
<tr><td>285</td> <tr><td>285</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>286</td> <tr><td>286</td>
<td class="covered">}</td></tr> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$relation&nbsp;=&nbsp;$table-&gt;getRelation($component);
</td></tr>
<tr><td>287</td>
<td class="normal">
</td></tr>
<tr><td>288</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;_aliasMap[$componentAlias]&nbsp;=&nbsp;array('table'&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;$relation-&gt;getTable(),
</td></tr>
<tr><td>289</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'parent'&nbsp;&nbsp;&nbsp;=&gt;&nbsp;$parent,
</td></tr>
<tr><td>290</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'relation'&nbsp;=&gt;&nbsp;$relation);
</td></tr>
<tr><td>291</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>292</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;addTableAlias($tableAlias,&nbsp;$componentAlias);
</td></tr>
<tr><td>293</td>
<td class="normal">
</td></tr>
<tr><td>294</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$parent&nbsp;=&nbsp;$currPath;
</td></tr>
<tr><td>295</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>296</td>
<td class="normal">
</td></tr>
<tr><td>297</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this;
</td></tr>
<tr><td>298</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>299</td>
<td class="normal">}
</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -973,5 +973,6 @@ ...@@ -973,5 +973,6 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>322</td> <tr><td>322</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(in_array($record,&nbsp;$this-&gt;invalid,&nbsp;true))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(in_array($record,&nbsp;$this-&gt;invalid,&nbsp;true))&nbsp;{
</td></tr> </td></tr>
<tr><td>122</td> <tr><td>122</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>123</td> <tr><td>123</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
...@@ -391,562 +391,562 @@ ...@@ -391,562 +391,562 @@
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>128</td> <tr><td>128</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">
</td></tr> </td></tr>
<tr><td>129</td> <tr><td>129</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getTransactionLevel <td class="normal">&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>130</td> <tr><td>130</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;get&nbsp;the&nbsp;current&nbsp;transaction&nbsp;nesting&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Return&nbsp;the&nbsp;invalid&nbsp;records
</td></tr> </td></tr>
<tr><td>131</td> <tr><td>131</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>132</td> <tr><td>132</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;An&nbsp;array&nbsp;of&nbsp;invalid&nbsp;records
</td></tr> </td></tr>
<tr><td>133</td> <tr><td>133</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;*/&nbsp;
</td></tr> </td></tr>
<tr><td>134</td> <tr><td>134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getTransactionLevel() <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getInvalid(){
</td></tr> </td></tr>
<tr><td>135</td> <tr><td>135</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;invalid;
</td></tr> </td></tr>
<tr><td>136</td> <tr><td>136</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;transactionLevel; <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>137</td> <tr><td>137</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>138</td> <tr><td>138</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>139</td> <tr><td>139</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getTransactionLevel
</td></tr> </td></tr>
<tr><td>140</td> <tr><td>140</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getTransactionLevel <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;get&nbsp;the&nbsp;current&nbsp;transaction&nbsp;nesting&nbsp;level
</td></tr> </td></tr>
<tr><td>141</td> <tr><td>141</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;set&nbsp;the&nbsp;current&nbsp;transaction&nbsp;nesting&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>142</td> <tr><td>142</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer
</td></tr> </td></tr>
<tr><td>143</td> <tr><td>143</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;Doctrine_Transaction&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;object <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>144</td> <tr><td>144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getTransactionLevel()
</td></tr> </td></tr>
<tr><td>145</td> <tr><td>145</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;setTransactionLevel($level) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>146</td> <tr><td>146</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;transactionLevel;
</td></tr> </td></tr>
<tr><td>147</td> <tr><td>147</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;=&nbsp;$level; <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>148</td> <tr><td>148</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>149</td> <tr><td>149</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>150</td> <tr><td>150</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getTransactionLevel
</td></tr> </td></tr>
<tr><td>151</td> <tr><td>151</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;set&nbsp;the&nbsp;current&nbsp;transaction&nbsp;nesting&nbsp;level
</td></tr> </td></tr>
<tr><td>152</td> <tr><td>152</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>153</td> <tr><td>153</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;beginTransaction <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;Doctrine_Transaction&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;object
</td></tr> </td></tr>
<tr><td>154</td> <tr><td>154</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Start&nbsp;a&nbsp;transaction&nbsp;or&nbsp;set&nbsp;a&nbsp;savepoint. <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>155</td> <tr><td>155</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;setTransactionLevel($level)
</td></tr> </td></tr>
<tr><td>156</td> <tr><td>156</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;if&nbsp;trying&nbsp;to&nbsp;set&nbsp;a&nbsp;savepoint&nbsp;and&nbsp;there&nbsp;is&nbsp;no&nbsp;active&nbsp;transaction <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>157</td> <tr><td>157</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;a&nbsp;new&nbsp;transaction&nbsp;is&nbsp;being&nbsp;started <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;=&nbsp;$level;
</td></tr> </td></tr>
<tr><td>158</td> <tr><td>158</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">
</td></tr> </td></tr>
<tr><td>159</td> <tr><td>159</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Listeners:&nbsp;onPreTransactionBegin,&nbsp;onTransactionBegin <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this;
</td></tr> </td></tr>
<tr><td>160</td> <tr><td>160</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>161</td> <tr><td>161</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;set <td class="normal">
</td></tr> </td></tr>
<tr><td>162</td> <tr><td>162</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;transaction&nbsp;fails&nbsp;at&nbsp;database&nbsp;level&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>163</td> <tr><td>163</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;current&nbsp;transaction&nbsp;nesting&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;beginTransaction
</td></tr> </td></tr>
<tr><td>164</td> <tr><td>164</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Start&nbsp;a&nbsp;transaction&nbsp;or&nbsp;set&nbsp;a&nbsp;savepoint.
</td></tr> </td></tr>
<tr><td>165</td> <tr><td>165</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;beginTransaction($savepoint&nbsp;=&nbsp;null) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>166</td> <tr><td>166</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;if&nbsp;trying&nbsp;to&nbsp;set&nbsp;a&nbsp;savepoint&nbsp;and&nbsp;there&nbsp;is&nbsp;no&nbsp;active&nbsp;transaction
</td></tr> </td></tr>
<tr><td>167</td> <tr><td>167</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;connect(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;a&nbsp;new&nbsp;transaction&nbsp;is&nbsp;being&nbsp;started
</td></tr> </td></tr>
<tr><td>168</td> <tr><td>168</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>169</td> <tr><td>169</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener&nbsp;=&nbsp;$this-&gt;conn-&gt;getAttribute(Doctrine::ATTR_LISTENER); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Listeners:&nbsp;onPreTransactionBegin,&nbsp;onTransactionBegin
</td></tr> </td></tr>
<tr><td>170</td> <tr><td>170</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>171</td> <tr><td>171</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;is_null($savepoint))&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;set
</td></tr> </td></tr>
<tr><td>172</td> <tr><td>172</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;savePoints[]&nbsp;=&nbsp;$savepoint; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;transaction&nbsp;fails&nbsp;at&nbsp;database&nbsp;level&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>173</td> <tr><td>173</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;current&nbsp;transaction&nbsp;nesting&nbsp;level
</td></tr> </td></tr>
<tr><td>174</td> <tr><td>174</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::SAVEPOINT_CREATE); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>175</td> <tr><td>175</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;beginTransaction($savepoint&nbsp;=&nbsp;null)
</td></tr> </td></tr>
<tr><td>176</td> <tr><td>176</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preSavepointCreate($event); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>177</td> <tr><td>177</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;connect();
</td></tr> </td></tr>
<tr><td>178</td> <tr><td>178</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>179</td> <tr><td>179</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;createSavePoint($savepoint); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener&nbsp;=&nbsp;$this-&gt;conn-&gt;getAttribute(Doctrine::ATTR_LISTENER);
</td></tr> </td></tr>
<tr><td>180</td> <tr><td>180</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>181</td> <tr><td>181</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;is_null($savepoint))&nbsp;{
</td></tr> </td></tr>
<tr><td>182</td> <tr><td>182</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postSavepointCreate($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;savePoints[]&nbsp;=&nbsp;$savepoint;
</td></tr> </td></tr>
<tr><td>183</td> <tr><td>183</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>184</td> <tr><td>184</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;0)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::SAVEPOINT_CREATE);
</td></tr> </td></tr>
<tr><td>185</td> <tr><td>185</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::TX_BEGIN); <td class="normal">
</td></tr> </td></tr>
<tr><td>186</td> <tr><td>186</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preSavepointCreate($event);
</td></tr> </td></tr>
<tr><td>187</td> <tr><td>187</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preTransactionBegin($event); <td class="normal">
</td></tr> </td></tr>
<tr><td>188</td> <tr><td>188</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{
</td></tr> </td></tr>
<tr><td>189</td> <tr><td>189</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;createSavePoint($savepoint);
</td></tr> </td></tr>
<tr><td>190</td> <tr><td>190</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>191</td> <tr><td>191</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;getDbh()-&gt;beginTransaction(); <td class="normal">
</td></tr> </td></tr>
<tr><td>192</td> <tr><td>192</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(Exception&nbsp;$e)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postSavepointCreate($event);
</td></tr> </td></tr>
<tr><td>193</td> <tr><td>193</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception($e-&gt;getMessage()); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>194</td> <tr><td>194</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;0)&nbsp;{
</td></tr> </td></tr>
<tr><td>195</td> <tr><td>195</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::TX_BEGIN);
</td></tr> </td></tr>
<tr><td>196</td> <tr><td>196</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postTransactionBegin($event); <td class="normal">
</td></tr> </td></tr>
<tr><td>197</td> <tr><td>197</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preTransactionBegin($event);
</td></tr> </td></tr>
<tr><td>198</td> <tr><td>198</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>199</td> <tr><td>199</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{
</td></tr> </td></tr>
<tr><td>200</td> <tr><td>200</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$level&nbsp;=&nbsp;++$this-&gt;transactionLevel; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{
</td></tr> </td></tr>
<tr><td>201</td> <tr><td>201</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;getDbh()-&gt;beginTransaction();
</td></tr> </td></tr>
<tr><td>202</td> <tr><td>202</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$level; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(Exception&nbsp;$e)&nbsp;{
</td></tr> </td></tr>
<tr><td>203</td> <tr><td>203</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception($e-&gt;getMessage());
</td></tr> </td></tr>
<tr><td>204</td> <tr><td>204</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>205</td> <tr><td>205</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>206</td> <tr><td>206</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;commit <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postTransactionBegin($event);
</td></tr> </td></tr>
<tr><td>207</td> <tr><td>207</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Commit&nbsp;the&nbsp;database&nbsp;changes&nbsp;done&nbsp;during&nbsp;a&nbsp;transaction&nbsp;that&nbsp;is&nbsp;in <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>208</td> <tr><td>208</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;progress&nbsp;or&nbsp;release&nbsp;a&nbsp;savepoint.&nbsp;This&nbsp;function&nbsp;may&nbsp;only&nbsp;be&nbsp;called&nbsp;when <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>209</td> <tr><td>209</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;auto-committing&nbsp;is&nbsp;disabled,&nbsp;otherwise&nbsp;it&nbsp;will&nbsp;fail. <td class="normal">
</td></tr> </td></tr>
<tr><td>210</td> <tr><td>210</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$level&nbsp;=&nbsp;++$this-&gt;transactionLevel;
</td></tr> </td></tr>
<tr><td>211</td> <tr><td>211</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Listeners:&nbsp;preTransactionCommit,&nbsp;postTransactionCommit <td class="normal">
</td></tr> </td></tr>
<tr><td>212</td> <tr><td>212</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$level;
</td></tr> </td></tr>
<tr><td>213</td> <tr><td>213</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;release <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>214</td> <tr><td>214</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;transaction&nbsp;fails&nbsp;at&nbsp;database&nbsp;level <td class="normal">
</td></tr> </td></tr>
<tr><td>215</td> <tr><td>215</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Validator_Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;transaction&nbsp;fails&nbsp;due&nbsp;to&nbsp;record&nbsp;validations <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>216</td> <tr><td>216</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;boolean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false&nbsp;if&nbsp;commit&nbsp;couldn't&nbsp;be&nbsp;performed,&nbsp;true&nbsp;otherwise <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;commit
</td></tr> </td></tr>
<tr><td>217</td> <tr><td>217</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Commit&nbsp;the&nbsp;database&nbsp;changes&nbsp;done&nbsp;during&nbsp;a&nbsp;transaction&nbsp;that&nbsp;is&nbsp;in
</td></tr> </td></tr>
<tr><td>218</td> <tr><td>218</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;commit($savepoint&nbsp;=&nbsp;null) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;progress&nbsp;or&nbsp;release&nbsp;a&nbsp;savepoint.&nbsp;This&nbsp;function&nbsp;may&nbsp;only&nbsp;be&nbsp;called&nbsp;when
</td></tr> </td></tr>
<tr><td>219</td> <tr><td>219</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;auto-committing&nbsp;is&nbsp;disabled,&nbsp;otherwise&nbsp;it&nbsp;will&nbsp;fail.
</td></tr> </td></tr>
<tr><td>220</td> <tr><td>220</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;connect(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>221</td> <tr><td>221</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Listeners:&nbsp;preTransactionCommit,&nbsp;postTransactionCommit
</td></tr> </td></tr>
<tr><td>222</td> <tr><td>222</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;0)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>223</td> <tr><td>223</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;release
</td></tr> </td></tr>
<tr><td>224</td> <tr><td>224</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;transaction&nbsp;fails&nbsp;at&nbsp;database&nbsp;level
</td></tr> </td></tr>
<tr><td>225</td> <tr><td>225</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Validator_Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;transaction&nbsp;fails&nbsp;due&nbsp;to&nbsp;record&nbsp;validations
</td></tr> </td></tr>
<tr><td>226</td> <tr><td>226</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener&nbsp;=&nbsp;$this-&gt;conn-&gt;getAttribute(Doctrine::ATTR_LISTENER); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;boolean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false&nbsp;if&nbsp;commit&nbsp;couldn't&nbsp;be&nbsp;performed,&nbsp;true&nbsp;otherwise
</td></tr> </td></tr>
<tr><td>227</td> <tr><td>227</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>228</td> <tr><td>228</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;is_null($savepoint))&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;commit($savepoint&nbsp;=&nbsp;null)
</td></tr> </td></tr>
<tr><td>229</td> <tr><td>229</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;-=&nbsp;$this-&gt;removeSavePoints($savepoint); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>230</td> <tr><td>230</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;connect();
</td></tr> </td></tr>
<tr><td>231</td> <tr><td>231</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::SAVEPOINT_COMMIT); <td class="normal">
</td></tr> </td></tr>
<tr><td>232</td> <tr><td>232</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;0)&nbsp;{
</td></tr> </td></tr>
<tr><td>233</td> <tr><td>233</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preSavepointCommit($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>234</td> <tr><td>234</td>
<td class="normal"> <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>235</td> <tr><td>235</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>236</td> <tr><td>236</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;releaseSavePoint($savepoint); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener&nbsp;=&nbsp;$this-&gt;conn-&gt;getAttribute(Doctrine::ATTR_LISTENER);
</td></tr> </td></tr>
<tr><td>237</td> <tr><td>237</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>238</td> <tr><td>238</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;is_null($savepoint))&nbsp;{
</td></tr> </td></tr>
<tr><td>239</td> <tr><td>239</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postSavepointCommit($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;-=&nbsp;$this-&gt;removeSavePoints($savepoint);
</td></tr> </td></tr>
<tr><td>240</td> <tr><td>240</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>241</td> <tr><td>241</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::SAVEPOINT_COMMIT);
</td></tr> </td></tr>
<tr><td>242</td> <tr><td>242</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;1)&nbsp;{&nbsp;&nbsp; <td class="normal">
</td></tr> </td></tr>
<tr><td>243</td> <tr><td>243</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($this-&gt;invalid))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preSavepointCommit($event);
</td></tr> </td></tr>
<tr><td>244</td> <tr><td>244</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;rollback(); <td class="normal">
</td></tr> </td></tr>
<tr><td>245</td> <tr><td>245</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{
</td></tr> </td></tr>
<tr><td>246</td> <tr><td>246</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tmp&nbsp;=&nbsp;$this-&gt;invalid; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;releaseSavePoint($savepoint);
</td></tr> </td></tr>
<tr><td>247</td> <tr><td>247</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;invalid&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>248</td> <tr><td>248</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>249</td> <tr><td>249</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Validator_Exception($tmp); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postSavepointCommit($event);
</td></tr> </td></tr>
<tr><td>250</td> <tr><td>250</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>251</td> <tr><td>251</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>252</td> <tr><td>252</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;take&nbsp;snapshots&nbsp;of&nbsp;all&nbsp;collections&nbsp;used&nbsp;within&nbsp;this&nbsp;transaction <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;1)&nbsp;{&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>253</td> <tr><td>253</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;_collections&nbsp;as&nbsp;$coll)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($this-&gt;invalid))&nbsp;{
</td></tr> </td></tr>
<tr><td>254</td> <tr><td>254</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$coll-&gt;takeSnapshot(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;rollback();
</td></tr> </td></tr>
<tr><td>255</td> <tr><td>255</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>256</td> <tr><td>256</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;_collections&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tmp&nbsp;=&nbsp;$this-&gt;invalid;
</td></tr> </td></tr>
<tr><td>257</td> <tr><td>257</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;invalid&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>258</td> <tr><td>258</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::TX_COMMIT); <td class="normal">
</td></tr> </td></tr>
<tr><td>259</td> <tr><td>259</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Validator_Exception($tmp);
</td></tr> </td></tr>
<tr><td>260</td> <tr><td>260</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preTransactionCommit($event); <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>261</td> <tr><td>261</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>262</td> <tr><td>262</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;getDbh()-&gt;commit(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;take&nbsp;snapshots&nbsp;of&nbsp;all&nbsp;collections&nbsp;used&nbsp;within&nbsp;this&nbsp;transaction
</td></tr> </td></tr>
<tr><td>263</td> <tr><td>263</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;_collections&nbsp;as&nbsp;$coll)&nbsp;{
</td></tr> </td></tr>
<tr><td>264</td> <tr><td>264</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postTransactionCommit($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$coll-&gt;takeSnapshot();
</td></tr> </td></tr>
<tr><td>265</td> <tr><td>265</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>266</td> <tr><td>266</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;_collections&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>267</td> <tr><td>267</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>268</td> <tr><td>268</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel--; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::TX_COMMIT);
</td></tr> </td></tr>
<tr><td>269</td> <tr><td>269</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>270</td> <tr><td>270</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preTransactionCommit($event);
</td></tr> </td></tr>
<tr><td>271</td> <tr><td>271</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{
</td></tr> </td></tr>
<tr><td>272</td> <tr><td>272</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;getDbh()-&gt;commit();
</td></tr> </td></tr>
<tr><td>273</td> <tr><td>273</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>274</td> <tr><td>274</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postTransactionCommit($event);
</td></tr> </td></tr>
<tr><td>275</td> <tr><td>275</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;rollback <td class="normal">
</td></tr> </td></tr>
<tr><td>276</td> <tr><td>276</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Cancel&nbsp;any&nbsp;database&nbsp;changes&nbsp;done&nbsp;during&nbsp;a&nbsp;transaction&nbsp;or&nbsp;since&nbsp;a&nbsp;specific <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>277</td> <tr><td>277</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;savepoint&nbsp;that&nbsp;is&nbsp;in&nbsp;progress.&nbsp;This&nbsp;function&nbsp;may&nbsp;only&nbsp;be&nbsp;called&nbsp;when <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>278</td> <tr><td>278</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;auto-committing&nbsp;is&nbsp;disabled,&nbsp;otherwise&nbsp;it&nbsp;will&nbsp;fail.&nbsp;Therefore,&nbsp;a&nbsp;new <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel--;
</td></tr> </td></tr>
<tr><td>279</td> <tr><td>279</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;transaction&nbsp;is&nbsp;implicitly&nbsp;started&nbsp;after&nbsp;canceling&nbsp;the&nbsp;pending&nbsp;changes. <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>280</td> <tr><td>280</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">
</td></tr> </td></tr>
<tr><td>281</td> <tr><td>281</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;this&nbsp;method&nbsp;can&nbsp;be&nbsp;listened&nbsp;with&nbsp;onPreTransactionRollback&nbsp;and&nbsp;onTransactionRollback <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;
</td></tr> </td></tr>
<tr><td>282</td> <tr><td>282</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;eventlistener&nbsp;methods <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>283</td> <tr><td>283</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">
</td></tr> </td></tr>
<tr><td>284</td> <tr><td>284</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;rollback&nbsp;to&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>285</td> <tr><td>285</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;rollback&nbsp;operation&nbsp;fails&nbsp;at&nbsp;database&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;rollback
</td></tr> </td></tr>
<tr><td>286</td> <tr><td>286</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;boolean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false&nbsp;if&nbsp;rollback&nbsp;couldn't&nbsp;be&nbsp;performed,&nbsp;true&nbsp;otherwise <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Cancel&nbsp;any&nbsp;database&nbsp;changes&nbsp;done&nbsp;during&nbsp;a&nbsp;transaction&nbsp;or&nbsp;since&nbsp;a&nbsp;specific
</td></tr> </td></tr>
<tr><td>287</td> <tr><td>287</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;savepoint&nbsp;that&nbsp;is&nbsp;in&nbsp;progress.&nbsp;This&nbsp;function&nbsp;may&nbsp;only&nbsp;be&nbsp;called&nbsp;when
</td></tr> </td></tr>
<tr><td>288</td> <tr><td>288</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;rollback($savepoint&nbsp;=&nbsp;null) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;auto-committing&nbsp;is&nbsp;disabled,&nbsp;otherwise&nbsp;it&nbsp;will&nbsp;fail.&nbsp;Therefore,&nbsp;a&nbsp;new
</td></tr> </td></tr>
<tr><td>289</td> <tr><td>289</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;transaction&nbsp;is&nbsp;implicitly&nbsp;started&nbsp;after&nbsp;canceling&nbsp;the&nbsp;pending&nbsp;changes.
</td></tr> </td></tr>
<tr><td>290</td> <tr><td>290</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;connect(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>291</td> <tr><td>291</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;this&nbsp;method&nbsp;can&nbsp;be&nbsp;listened&nbsp;with&nbsp;onPreTransactionRollback&nbsp;and&nbsp;onTransactionRollback
</td></tr> </td></tr>
<tr><td>292</td> <tr><td>292</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;0)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;eventlistener&nbsp;methods
</td></tr> </td></tr>
<tr><td>293</td> <tr><td>293</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>294</td> <tr><td>294</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;rollback&nbsp;to&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>295</td> <tr><td>295</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;rollback&nbsp;operation&nbsp;fails&nbsp;at&nbsp;database&nbsp;level
</td></tr> </td></tr>
<tr><td>296</td> <tr><td>296</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener&nbsp;=&nbsp;$this-&gt;conn-&gt;getAttribute(Doctrine::ATTR_LISTENER); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;boolean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false&nbsp;if&nbsp;rollback&nbsp;couldn't&nbsp;be&nbsp;performed,&nbsp;true&nbsp;otherwise
</td></tr> </td></tr>
<tr><td>297</td> <tr><td>297</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>298</td> <tr><td>298</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;is_null($savepoint))&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;rollback($savepoint&nbsp;=&nbsp;null)
</td></tr> </td></tr>
<tr><td>299</td> <tr><td>299</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;-=&nbsp;$this-&gt;removeSavePoints($savepoint); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>300</td> <tr><td>300</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;connect();
</td></tr> </td></tr>
<tr><td>301</td> <tr><td>301</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::SAVEPOINT_ROLLBACK); <td class="normal">
</td></tr> </td></tr>
<tr><td>302</td> <tr><td>302</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;transactionLevel&nbsp;==&nbsp;0)&nbsp;{
</td></tr> </td></tr>
<tr><td>303</td> <tr><td>303</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preSavepointRollback($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>304</td> <tr><td>304</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>305</td> <tr><td>305</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>306</td> <tr><td>306</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;rollbackSavePoint($savepoint); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener&nbsp;=&nbsp;$this-&gt;conn-&gt;getAttribute(Doctrine::ATTR_LISTENER);
</td></tr> </td></tr>
<tr><td>307</td> <tr><td>307</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>308</td> <tr><td>308</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;is_null($savepoint))&nbsp;{
</td></tr> </td></tr>
<tr><td>309</td> <tr><td>309</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postSavepointRollback($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;-=&nbsp;$this-&gt;removeSavePoints($savepoint);
</td></tr> </td></tr>
<tr><td>310</td> <tr><td>310</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>311</td> <tr><td>311</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::TX_ROLLBACK); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::SAVEPOINT_ROLLBACK);
</td></tr> </td></tr>
<tr><td>312</td> <tr><td>312</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">
</td></tr> </td></tr>
<tr><td>313</td> <tr><td>313</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preTransactionRollback($event); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preSavepointRollback($event);
</td></tr> </td></tr>
<tr><td>314</td> <tr><td>314</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
...@@ -955,374 +955,405 @@ ...@@ -955,374 +955,405 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{
</td></tr> </td></tr>
<tr><td>316</td> <tr><td>316</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;=&nbsp;0; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;rollbackSavePoint($savepoint);
</td></tr> </td></tr>
<tr><td>317</td> <tr><td>317</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>318</td> <tr><td>318</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;getDbh()-&gt;rollback(); <td class="normal">
</td></tr> </td></tr>
<tr><td>319</td> <tr><td>319</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(Exception&nbsp;$e)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postSavepointRollback($event);
</td></tr> </td></tr>
<tr><td>320</td> <tr><td>320</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception($e-&gt;getMessage()); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>321</td> <tr><td>321</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$event&nbsp;=&nbsp;new&nbsp;Doctrine_Event($this,&nbsp;Doctrine_Event::TX_ROLLBACK);
</td></tr> </td></tr>
<tr><td>322</td> <tr><td>322</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>323</td> <tr><td>323</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;preTransactionRollback($event);
</td></tr> </td></tr>
<tr><td>324</td> <tr><td>324</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postTransactionRollback($event); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>325</td> <tr><td>325</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$event-&gt;skipOperation)&nbsp;{
</td></tr> </td></tr>
<tr><td>326</td> <tr><td>326</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;transactionLevel&nbsp;=&nbsp;0;
</td></tr> </td></tr>
<tr><td>327</td> <tr><td>327</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{
</td></tr> </td></tr>
<tr><td>328</td> <tr><td>328</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;getDbh()-&gt;rollback();
</td></tr> </td></tr>
<tr><td>329</td> <tr><td>329</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(Exception&nbsp;$e)&nbsp;{
</td></tr> </td></tr>
<tr><td>330</td> <tr><td>330</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception($e-&gt;getMessage());
</td></tr> </td></tr>
<tr><td>331</td> <tr><td>331</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releaseSavePoint <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>332</td> <tr><td>332</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;creates&nbsp;a&nbsp;new&nbsp;savepoint <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>333</td> <tr><td>333</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">
</td></tr> </td></tr>
<tr><td>334</td> <tr><td>334</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;create <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$listener-&gt;postTransactionRollback($event);
</td></tr> </td></tr>
<tr><td>335</td> <tr><td>335</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>336</td> <tr><td>336</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">
</td></tr> </td></tr>
<tr><td>337</td> <tr><td>337</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;function&nbsp;createSavePoint($savepoint) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;
</td></tr> </td></tr>
<tr><td>338</td> <tr><td>338</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>339</td> <tr><td>339</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Savepoints&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.'); <td class="normal">
</td></tr> </td></tr>
<tr><td>340</td> <tr><td>340</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>341</td> <tr><td>341</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releaseSavePoint
</td></tr> </td></tr>
<tr><td>342</td> <tr><td>342</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;creates&nbsp;a&nbsp;new&nbsp;savepoint
</td></tr> </td></tr>
<tr><td>343</td> <tr><td>343</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releaseSavePoint <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>344</td> <tr><td>344</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releases&nbsp;given&nbsp;savepoint <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;create
</td></tr> </td></tr>
<tr><td>345</td> <tr><td>345</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>346</td> <tr><td>346</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;release <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>347</td> <tr><td>347</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;function&nbsp;createSavePoint($savepoint)
</td></tr> </td></tr>
<tr><td>348</td> <tr><td>348</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>349</td> <tr><td>349</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;function&nbsp;releaseSavePoint($savepoint) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Savepoints&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.');
</td></tr> </td></tr>
<tr><td>350</td> <tr><td>350</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>351</td> <tr><td>351</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Savepoints&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.'); <td class="normal">
</td></tr> </td></tr>
<tr><td>352</td> <tr><td>352</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>353</td> <tr><td>353</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releaseSavePoint
</td></tr> </td></tr>
<tr><td>354</td> <tr><td>354</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releases&nbsp;given&nbsp;savepoint
</td></tr> </td></tr>
<tr><td>355</td> <tr><td>355</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;rollbackSavePoint <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>356</td> <tr><td>356</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releases&nbsp;given&nbsp;savepoint <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;release
</td></tr> </td></tr>
<tr><td>357</td> <tr><td>357</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>358</td> <tr><td>358</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;rollback&nbsp;to <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>359</td> <tr><td>359</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;function&nbsp;releaseSavePoint($savepoint)
</td></tr> </td></tr>
<tr><td>360</td> <tr><td>360</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>361</td> <tr><td>361</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;function&nbsp;rollbackSavePoint($savepoint) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Savepoints&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.');
</td></tr> </td></tr>
<tr><td>362</td> <tr><td>362</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>363</td> <tr><td>363</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Savepoints&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.'); <td class="normal">
</td></tr> </td></tr>
<tr><td>364</td> <tr><td>364</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>365</td> <tr><td>365</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;rollbackSavePoint
</td></tr> </td></tr>
<tr><td>366</td> <tr><td>366</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;releases&nbsp;given&nbsp;savepoint
</td></tr> </td></tr>
<tr><td>367</td> <tr><td>367</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;removeSavePoints <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>368</td> <tr><td>368</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;removes&nbsp;a&nbsp;savepoint&nbsp;from&nbsp;the&nbsp;internal&nbsp;savePoints&nbsp;array&nbsp;of&nbsp;this&nbsp;transaction&nbsp;object <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;a&nbsp;savepoint&nbsp;to&nbsp;rollback&nbsp;to
</td></tr> </td></tr>
<tr><td>369</td> <tr><td>369</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;and&nbsp;all&nbsp;its&nbsp;children&nbsp;savepoints <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>370</td> <tr><td>370</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>371</td> <tr><td>371</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;sring&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;the&nbsp;savepoint&nbsp;to&nbsp;remove <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;function&nbsp;rollbackSavePoint($savepoint)
</td></tr> </td></tr>
<tr><td>372</td> <tr><td>372</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removed&nbsp;savepoints <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>373</td> <tr><td>373</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Savepoints&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.');
</td></tr> </td></tr>
<tr><td>374</td> <tr><td>374</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;removeSavePoints($savepoint) <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>375</td> <tr><td>375</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>376</td> <tr><td>376</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;savePoints&nbsp;=&nbsp;array_values($this-&gt;savePoints); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>377</td> <tr><td>377</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;removeSavePoints
</td></tr> </td></tr>
<tr><td>378</td> <tr><td>378</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$found&nbsp;=&nbsp;false; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;removes&nbsp;a&nbsp;savepoint&nbsp;from&nbsp;the&nbsp;internal&nbsp;savePoints&nbsp;array&nbsp;of&nbsp;this&nbsp;transaction&nbsp;object
</td></tr> </td></tr>
<tr><td>379</td> <tr><td>379</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$i&nbsp;=&nbsp;0; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;and&nbsp;all&nbsp;its&nbsp;children&nbsp;savepoints
</td></tr> </td></tr>
<tr><td>380</td> <tr><td>380</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>381</td> <tr><td>381</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;savePoints&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$sp)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;sring&nbsp;$savepoint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;of&nbsp;the&nbsp;savepoint&nbsp;to&nbsp;remove
</td></tr> </td></tr>
<tr><td>382</td> <tr><td>382</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$found)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removed&nbsp;savepoints
</td></tr> </td></tr>
<tr><td>383</td> <tr><td>383</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($sp&nbsp;===&nbsp;$savepoint)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>384</td> <tr><td>384</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$found&nbsp;=&nbsp;true; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;removeSavePoints($savepoint)
</td></tr> </td></tr>
<tr><td>385</td> <tr><td>385</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>386</td> <tr><td>386</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;savePoints&nbsp;=&nbsp;array_values($this-&gt;savePoints);
</td></tr> </td></tr>
<tr><td>387</td> <tr><td>387</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($found)&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>388</td> <tr><td>388</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$i++; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$found&nbsp;=&nbsp;false;
</td></tr> </td></tr>
<tr><td>389</td> <tr><td>389</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($this-&gt;savePoints[$key]); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$i&nbsp;=&nbsp;0;
</td></tr> </td></tr>
<tr><td>390</td> <tr><td>390</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>391</td> <tr><td>391</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this-&gt;savePoints&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$sp)&nbsp;{
</td></tr> </td></tr>
<tr><td>392</td> <tr><td>392</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;$found)&nbsp;{
</td></tr> </td></tr>
<tr><td>393</td> <tr><td>393</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$i; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($sp&nbsp;===&nbsp;$savepoint)&nbsp;{
</td></tr> </td></tr>
<tr><td>394</td> <tr><td>394</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$found&nbsp;=&nbsp;true;
</td></tr> </td></tr>
<tr><td>395</td> <tr><td>395</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>396</td> <tr><td>396</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>397</td> <tr><td>397</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;setIsolation <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($found)&nbsp;{
</td></tr> </td></tr>
<tr><td>398</td> <tr><td>398</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$i++;
</td></tr> </td></tr>
<tr><td>399</td> <tr><td>399</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Set&nbsp;the&nbsp;transacton&nbsp;isolation&nbsp;level. <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($this-&gt;savePoints[$key]);
</td></tr> </td></tr>
<tr><td>400</td> <tr><td>400</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;(implemented&nbsp;by&nbsp;the&nbsp;connection&nbsp;drivers) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>401</td> <tr><td>401</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>402</td> <tr><td>402</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;example: <td class="normal">
</td></tr> </td></tr>
<tr><td>403</td> <tr><td>403</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$i;
</td></tr> </td></tr>
<tr><td>404</td> <tr><td>404</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&lt;code&gt; <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>405</td> <tr><td>405</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;$tx-&gt;setIsolation('READ&nbsp;UNCOMMITTED'); <td class="normal">
</td></tr> </td></tr>
<tr><td>406</td> <tr><td>406</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&lt;/code&gt; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>407</td> <tr><td>407</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;setIsolation
</td></tr> </td></tr>
<tr><td>408</td> <tr><td>408</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;&nbsp;&nbsp;string&nbsp;&nbsp;standard&nbsp;isolation&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>409</td> <tr><td>409</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;READ&nbsp;UNCOMMITTED&nbsp;(allows&nbsp;dirty&nbsp;reads) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Set&nbsp;the&nbsp;transacton&nbsp;isolation&nbsp;level.
</td></tr> </td></tr>
<tr><td>410</td> <tr><td>410</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;READ&nbsp;COMMITTED&nbsp;(prevents&nbsp;dirty&nbsp;reads) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;(implemented&nbsp;by&nbsp;the&nbsp;connection&nbsp;drivers)
</td></tr> </td></tr>
<tr><td>411</td> <tr><td>411</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REPEATABLE&nbsp;READ&nbsp;(prevents&nbsp;nonrepeatable&nbsp;reads) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>412</td> <tr><td>412</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SERIALIZABLE&nbsp;(prevents&nbsp;phantom&nbsp;reads) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;example:
</td></tr> </td></tr>
<tr><td>413</td> <tr><td>413</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>414</td> <tr><td>414</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;feature&nbsp;is&nbsp;not&nbsp;supported&nbsp;by&nbsp;the&nbsp;driver <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&lt;code&gt;
</td></tr> </td></tr>
<tr><td>415</td> <tr><td>415</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;PDOException&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;something&nbsp;fails&nbsp;at&nbsp;the&nbsp;PDO&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;$tx-&gt;setIsolation('READ&nbsp;UNCOMMITTED');
</td></tr> </td></tr>
<tr><td>416</td> <tr><td>416</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&lt;/code&gt;
</td></tr> </td></tr>
<tr><td>417</td> <tr><td>417</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>418</td> <tr><td>418</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;setIsolation($isolation) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;&nbsp;&nbsp;string&nbsp;&nbsp;standard&nbsp;isolation&nbsp;level
</td></tr> </td></tr>
<tr><td>419</td> <tr><td>419</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;READ&nbsp;UNCOMMITTED&nbsp;(allows&nbsp;dirty&nbsp;reads)
</td></tr> </td></tr>
<tr><td>420</td> <tr><td>420</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Transaction&nbsp;isolation&nbsp;levels&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;READ&nbsp;COMMITTED&nbsp;(prevents&nbsp;dirty&nbsp;reads)
</td></tr> </td></tr>
<tr><td>421</td> <tr><td>421</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REPEATABLE&nbsp;READ&nbsp;(prevents&nbsp;nonrepeatable&nbsp;reads)
</td></tr> </td></tr>
<tr><td>422</td> <tr><td>422</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SERIALIZABLE&nbsp;(prevents&nbsp;phantom&nbsp;reads)
</td></tr> </td></tr>
<tr><td>423</td> <tr><td>423</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>424</td> <tr><td>424</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getTransactionIsolation <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;feature&nbsp;is&nbsp;not&nbsp;supported&nbsp;by&nbsp;the&nbsp;driver
</td></tr> </td></tr>
<tr><td>425</td> <tr><td>425</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;PDOException&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;something&nbsp;fails&nbsp;at&nbsp;the&nbsp;PDO&nbsp;level
</td></tr> </td></tr>
<tr><td>426</td> <tr><td>426</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;fetches&nbsp;the&nbsp;current&nbsp;session&nbsp;transaction&nbsp;isolation&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>427</td> <tr><td>427</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>428</td> <tr><td>428</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;note:&nbsp;some&nbsp;drivers&nbsp;may&nbsp;support&nbsp;setting&nbsp;the&nbsp;transaction&nbsp;isolation&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;setIsolation($isolation)
</td></tr> </td></tr>
<tr><td>429</td> <tr><td>429</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;but&nbsp;not&nbsp;fetching&nbsp;it <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>430</td> <tr><td>430</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Transaction&nbsp;isolation&nbsp;levels&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.');
</td></tr> </td></tr>
<tr><td>431</td> <tr><td>431</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;feature&nbsp;is&nbsp;not&nbsp;supported&nbsp;by&nbsp;the&nbsp;driver <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>432</td> <tr><td>432</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;PDOException&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;something&nbsp;fails&nbsp;at&nbsp;the&nbsp;PDO&nbsp;level <td class="normal">
</td></tr> </td></tr>
<tr><td>433</td> <tr><td>433</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns&nbsp;the&nbsp;current&nbsp;session&nbsp;transaction&nbsp;isolation&nbsp;level <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>434</td> <tr><td>434</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getTransactionIsolation
</td></tr> </td></tr>
<tr><td>435</td> <tr><td>435</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getIsolation() <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>436</td> <tr><td>436</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;fetches&nbsp;the&nbsp;current&nbsp;session&nbsp;transaction&nbsp;isolation&nbsp;level
</td></tr> </td></tr>
<tr><td>437</td> <tr><td>437</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Fetching&nbsp;transaction&nbsp;isolation&nbsp;level&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>438</td> <tr><td>438</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;note:&nbsp;some&nbsp;drivers&nbsp;may&nbsp;support&nbsp;setting&nbsp;the&nbsp;transaction&nbsp;isolation&nbsp;level
</td></tr> </td></tr>
<tr><td>439</td> <tr><td>439</td>
<td class="covered">}</td></tr> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;but&nbsp;not&nbsp;fetching&nbsp;it
</td></tr>
<tr><td>440</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>441</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Transaction_Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;the&nbsp;feature&nbsp;is&nbsp;not&nbsp;supported&nbsp;by&nbsp;the&nbsp;driver
</td></tr>
<tr><td>442</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;PDOException&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;something&nbsp;fails&nbsp;at&nbsp;the&nbsp;PDO&nbsp;level
</td></tr>
<tr><td>443</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns&nbsp;the&nbsp;current&nbsp;session&nbsp;transaction&nbsp;isolation&nbsp;level
</td></tr>
<tr><td>444</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>445</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getIsolation()
</td></tr>
<tr><td>446</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>447</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Transaction_Exception('Fetching&nbsp;transaction&nbsp;isolation&nbsp;level&nbsp;not&nbsp;supported&nbsp;by&nbsp;this&nbsp;driver.');
</td></tr>
<tr><td>448</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>449</td>
<td class="normal">}
</td></tr>
</table></body></html> </table></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment