1
0
mirror of synced 2025-01-18 06:21:40 +03:00

coveragereport

This commit is contained in:
meus 2007-11-08 22:14:39 +00:00
parent 11ee3cf9ad
commit 7efe3f5c3a
15 changed files with 4461 additions and 4720 deletions

View File

@ -1,301 +0,0 @@
<?php
/*
* $Id: Doctrine.php 1976 2007-07-11 22:03:47Z zYne $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
require_once dirname(__FILE__) . '/../lib/Doctrine.php';
spl_autoload_register(array('Doctrine', 'autoload'));
$reporter = new Doctrine_Coverage_Report("coverage.txt");
?>
<html>
<head>
<style type="text/css">
.covered{ background: green;}
.normal{ background: white;}
.red{ background: red;}
.orange{ background: #f90;}
</style>
</head>
<body>
<?php
if (isset($_GET["file"])){
echo '<h1>Coverage for ' . $_GET["file"] . '</h1>';
echo '<a href="cc.php">Back to coverage report</a>';
echo "<br>detailed view down atm <br> Will be up later on<br>";
// $reporter->showFile($_GET["file"]);
} else {
?>
<h1>Coverage report for Doctrine</h1>
<p>Default mode shows results sorted by percentage. This can be changed with GET variables:<br /> <ul><li>order = covered|total|maybe|notcovered|percentage</li><li>desc=true</li></ul></p>
<table>
<tr><th></th><th>Percentage</th><th>Total</th><th>Covered</th><th>Maybe</th><th>Not Covered</th><th></th></tr>
<?php
$reporter->showSummary();
echo "</table>";
}
?>
</body>
</html>
<?php
/**
* Doctrine
* the base class of Doctrine framework
*
* @package Doctrine
* @author Bjarte S. Karlsen <bjartka@pvv.ntnu.no>
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @category Object Relational Mapping
* @link www.phpdoctrine.com
* @since 1.0
* @version $Revision: 1976 $
*/
class Doctrine_Coverage_Report
{
const COVERED = 1;
const MAYBE = -2;
const NOTCOVERED = -1;
private $path;
private $coverage;
private $key;
private $covered;
private $totallines = 0;
private $totalcovered = 0;
private $totalmaybe = 0;
private $totalnotcovered = 0;
/*
* Create a new coverage report
*
* @param string $file The name of the file where coverage data is stored
*
*/
public function __construct($file)
{
$result = unserialize(file_get_contents("coverage.txt"));
$this->path = $result["path"];
$this->coverage = $result["coverage"];
$this->sortBy ="percentage"; // default sort
}
/*
* Show graphical coverage report for a file
*
* @param string $fileName The name of the file to show
*/
public function showFile($fileName)
{
$key = $this->path . $fileName;
$html = '<div id="coverage">';
if ( ! isset( $this->coverage[$key]))
{
echo '<h2>This file has not been tested!</h2>';
}
$coveredLines = $this->coverage[$key];
$fileArray = file(Doctrine::getPath() . "/".$fileName);
$html .= '<table>' . "\n";
foreach ($fileArray as $num => $line){
$linenum = $num+1;
$html .= '<tr><td>' . $linenum . '</td>' . "\n";
$class ="normal";
if (isset($coveredLines[$linenum]) && $coveredLines[$linenum] == 1){
$class = "covered";
} else if (isset($coveredLines[$linenum]) && $coveredLines[$linenum] == -1) {
$class ="red";
} else if (isset($coveredLines[$linenum]) && $coveredLines[$linenum] == -2) {
$class ="orange";
}
$line = str_replace(" ", "&nbsp;", htmlspecialchars($line));
$html .= '<td class="' . $class . '">' . $line . '</td></tr>' . "\n";
}
$html .='</table></div>';
echo $html;
}
/*
* Generate coverage data for non tested files
*
* Scans all files and records data for those that are not in the coverage
* record.
*
* @return array An array with coverage data
*/
public function generateNotCoveredFiles()
{
$it = new RecursiveDirectoryIterator(Doctrine::getPath());
$notCoveredArray = array();
foreach (new RecursiveIteratorIterator($it) as $file){
if (strpos($file->getPathname(), ".svn")){
continue;
}
$path = Doctrine::getPath() . DIRECTORY_SEPARATOR;
$coveredPath = str_replace($path, $this->path, $file->getPathname());
if (isset($this->coverage[$coveredPath])){
continue;
}
$class = str_replace($path, "", $file->getPathname());
$class = str_replace(DIRECTORY_SEPARATOR, "_", $class);
$class = substr($class, 0,-4);
if (strpos($class, '_Interface')) {
continue;
}
if ( ! class_exists($class)){
continue;
}
try{
$refClass = new ReflectionClass($class);
} catch (Exception $e){
echo $e->getMessage();
continue;
}
$lines = 0;
$methodLines = 0;
foreach ($refClass->getMethods() as $refMethod){
if ($refMethod->getDeclaringClass() != $refClass){
continue;
}
$methodLines = $refMethod->getEndLine() - $refMethod->getStartLine();
$lines += $methodLines;
}
if ($methodLines == 0){
$notCoveredArray[$class] = array("covered" => 0, "maybe" => 0, "notcovered"=>$lines, "total" => $lines, "percentage" => 100);
} else {
$notCoveredArray[$class] = array("covered" => 0, "maybe" => 0, "notcovered"=>$lines, "total" => $lines, "percentage" => 0);
}
$this->totallines += $lines;
$this->totalnotcovered += $lines;
}
return $notCoveredArray;
}
/*
* Show a summary of all files in Doctrine and their coverage data
*
* @uses generateNonCoveredFiles
* @uses generateCoverage
*/
public function showSummary()
{
if (isset($_GET["order"])){
$this->sortBy = $_GET["order"];
}
$coveredArray = $this->generateCoverage();
$notcoveredArray = $this->generateNotCoveredFiles();
$coveredArray = array_merge($coveredArray, $notcoveredArray);
//lets sort it.
uasort($coveredArray, array($this,"sortArray"));
//and flip if it perhaps?
if (isset($_GET["desc"]) && $_GET["desc"] == "true"){
$coveredArray = array_reverse($coveredArray, true);
}
//ugly code to print out the result:
echo "<tr><td>" . TOTAL . "</td><td>" . round((($this->totalcovered + $this->totalmaybe) / $this->totallines) * 100, 2) . " % </td><td>$this->totallines</td><td>$this->totalcovered</td><td>$this->totalmaybe</td><td>$this->totalnotcovered</td><td></td></tr>";
foreach($coveredArray as $class => $info){
$fileName = str_replace("_", "/", $class) . ".php";
echo "<tr><td>" . $class . "</td><td>" . $info["percentage"] . " % </td><td>" . $info["total"] . "</td><td>" . $info["covered"] . "</td><td>" . $info["maybe"] . "</td><td>" . $info["notcovered"]. "</td><td><a href=\"cc.php?file=" . $fileName . "\">coverage</a></td></tr>";
}
}
/*
* Generate coverage data for tested files
*
*@return array An array of coverage data
*/
public function generateCoverage()
{
$coveredArray = array();
foreach ($this->coverage as $file => $lines) {
$pos = strpos($file, $this->path);
if ($pos === false && $pos !== 0){
continue;
}
$class = str_replace(DIRECTORY_SEPARATOR, '_', substr($file, strlen($this->path), -4));
$class = str_replace($this->path, Doctrine::getPath(), $class);
if (strpos($class, '_Interface')) {
continue;
}
if ( ! class_exists($class)){
continue;
}
$total = count($lines) -1; //we have to remove one since it always reports the last line as a hit
$covered = 0;
$maybe = 0;
$notcovered = 0;
foreach ($lines as $result){
switch($result){
case self::COVERED:
$covered++;
break;
case self::NOTCOVERED:
$notcovered++;
break;
case self::MAYBE:
$maybe++;
break;
}
}
$covered--; //again we have to remove that last line.
$this->totallines += $total;
$this->totalcovered += $covered;
$this->totalnotcovered += $notcovered;
$this->totalmaybe += $maybe;
if ($total === 0) {
$total = 1;
}
$percentage = round((($covered + $maybe) / $total) * 100, 2);
$coveredArray[$class] = array("covered" => $covered, "maybe" => $maybe, "notcovered"=>$notcovered, "total" => $total, "percentage" => $percentage);
}
return $coveredArray;
}
/*
* Uasort function to sort the array by key
*
*/
public function sortArray($a, $b)
{
if ($a[$this->sortBy] == $b[$this->sortBy]) {
return 0;
}
return ( $a[$this->sortBy] < $b[$this->sortBy]) ? -1 : 1;
}
}

View File

@ -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;Doctrine.php&nbsp;3066&nbsp;2007-11-02&nbsp;16:07:11Z&nbsp;meus&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Doctrine.php&nbsp;3092&nbsp;2007-11-08&nbsp;19:01:22Z&nbsp;Jonathan.Wage&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
@ -103,7 +103,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>32</td> <tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3066&nbsp;$ <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3092&nbsp;$
</td></tr> </td></tr>
<tr><td>33</td> <tr><td>33</td>
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*/
@ -3046,7 +3046,7 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>1013</td> <tr><td>1013</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Callback&nbsp;function&nbsp;to&nbsp;classify&nbsp;a&nbsp;classname&nbsp;propperly.&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Callback&nbsp;function&nbsp;to&nbsp;classify&nbsp;a&nbsp;classname&nbsp;properly.&nbsp;
</td></tr> </td></tr>
<tr><td>1014</td> <tr><td>1014</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
@ -3157,27 +3157,24 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>1050</td> <tr><td>1050</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_dir($path)&nbsp;||&nbsp;is_file($path)) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_dir($path)&nbsp;||&nbsp;is_file($path))&nbsp;{
</td></tr> </td></tr>
<tr><td>1051</td> <tr><td>1051</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1052</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;
</td></tr> </td></tr>
<tr><td>1053</td> <tr><td>1052</td>
<td class="orange">&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>1054</td> <tr><td>1053</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>1055</td> <tr><td>1054</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;mkdir($path,&nbsp;$mode,&nbsp;true);&nbsp; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;mkdir($path,&nbsp;$mode,&nbsp;true);&nbsp;
</td></tr> </td></tr>
<tr><td>1056</td> <tr><td>1055</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1057</td> <tr><td>1056</td>
<td class="normal">} <td class="normal">}
</td></tr> </td></tr>
</table></body></html> </table></body></html>

File diff suppressed because it is too large Load Diff

View File

@ -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;Mysql.php&nbsp;2963&nbsp;2007-10-21&nbsp;06:23:59Z&nbsp;Jonathan.Wage&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Mysql.php&nbsp;3084&nbsp;2007-11-08&nbsp;14:01:03Z&nbsp;samw3&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
@ -91,7 +91,7 @@
<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;@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>28</td> <tr><td>28</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;3084&nbsp;$
</td></tr> </td></tr>
<tr><td>29</td> <tr><td>29</td>
<td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com <td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com
@ -1336,7 +1336,7 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getIntegerDeclaration($name,&nbsp;$field) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getIntegerDeclaration($name,&nbsp;$field)
</td></tr> </td></tr>
<tr><td>443</td> <tr><td>443</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>444</td> <tr><td>444</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;$autoinc&nbsp;=&nbsp;''; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;$autoinc&nbsp;=&nbsp;'';
@ -1357,53 +1357,65 @@
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field['default']&nbsp;=&nbsp;empty($field['notnull'])&nbsp;?&nbsp;null&nbsp;:&nbsp;0; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$field['default']&nbsp;=&nbsp;empty($field['notnull'])&nbsp;?&nbsp;null&nbsp;:&nbsp;0;
</td></tr> </td></tr>
<tr><td>450</td> <tr><td>450</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>451</td> <tr><td>451</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;'&nbsp;DEFAULT&nbsp;'.$this-&gt;conn-&gt;quote($field['default']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_null($field['default']))&nbsp;{
</td></tr> </td></tr>
<tr><td>452</td> <tr><td>452</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;'&nbsp;DEFAULT&nbsp;NULL';
</td></tr> </td></tr>
<tr><td>453</td> <tr><td>453</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>454</td> <tr><td>454</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elseif&nbsp;(empty($field['notnull']))&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;'&nbsp;DEFAULT&nbsp;'.$this-&gt;conn-&gt;quote($field['default']);
</td></tr> </td></tr>
<tr><td>455</td> <tr><td>455</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;'&nbsp;DEFAULT&nbsp;NULL'; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>456</td> <tr><td>456</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>457</td> <tr><td>457</td>
<td class="normal">&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>458</td> <tr><td>458</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elseif&nbsp;(empty($field['notnull']))&nbsp;{
</td></tr> </td></tr>
<tr><td>459</td> <tr><td>459</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$notnull&nbsp;&nbsp;=&nbsp;(isset($field['notnull'])&nbsp;&nbsp;&amp;&amp;&nbsp;$field['notnull'])&nbsp;&nbsp;?&nbsp;'&nbsp;NOT&nbsp;NULL'&nbsp;:&nbsp;''; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$default&nbsp;=&nbsp;'&nbsp;DEFAULT&nbsp;NULL';
</td></tr> </td></tr>
<tr><td>460</td> <tr><td>460</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$unsigned&nbsp;=&nbsp;(isset($field['unsigned'])&nbsp;&amp;&amp;&nbsp;$field['unsigned'])&nbsp;?&nbsp;'&nbsp;UNSIGNED'&nbsp;:&nbsp;''; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>461</td> <tr><td>461</td>
<td class="normal"> <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>462</td> <tr><td>462</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name&nbsp;=&nbsp;$this-&gt;conn-&gt;quoteIdentifier($name,&nbsp;true);
</td></tr>
<tr><td>463</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>463</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$notnull&nbsp;&nbsp;=&nbsp;(isset($field['notnull'])&nbsp;&nbsp;&amp;&amp;&nbsp;$field['notnull'])&nbsp;&nbsp;?&nbsp;'&nbsp;NOT&nbsp;NULL'&nbsp;:&nbsp;'';
</td></tr>
<tr><td>464</td> <tr><td>464</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$name&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$this-&gt;getNativeDeclaration($field)&nbsp;.&nbsp;$unsigned&nbsp;.&nbsp;$default&nbsp;.&nbsp;$notnull&nbsp;.&nbsp;$autoinc; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$unsigned&nbsp;=&nbsp;(isset($field['unsigned'])&nbsp;&amp;&amp;&nbsp;$field['unsigned'])&nbsp;?&nbsp;'&nbsp;UNSIGNED'&nbsp;:&nbsp;'';
</td></tr> </td></tr>
<tr><td>465</td> <tr><td>465</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">
</td></tr> </td></tr>
<tr><td>466</td> <tr><td>466</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name&nbsp;=&nbsp;$this-&gt;conn-&gt;quoteIdentifier($name,&nbsp;true);
</td></tr>
<tr><td>467</td>
<td class="normal">
</td></tr>
<tr><td>468</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$name&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$this-&gt;getNativeDeclaration($field)&nbsp;.&nbsp;$unsigned&nbsp;.&nbsp;$default&nbsp;.&nbsp;$notnull&nbsp;.&nbsp;$autoinc;
</td></tr>
<tr><td>469</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>470</td>
<td class="covered">}</td></tr> <td class="covered">}</td></tr>
</table></body></html> </table></body></html>

View File

@ -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;Export.php&nbsp;2963&nbsp;2007-10-21&nbsp;06:23:59Z&nbsp;Jonathan.Wage&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Export.php&nbsp;3088&nbsp;2007-11-08&nbsp;18:52:08Z&nbsp;Jonathan.Wage&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
@ -103,7 +103,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>32</td> <tr><td>32</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;3088&nbsp;$
</td></tr> </td></tr>
<tr><td>33</td> <tr><td>33</td>
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*/
@ -3235,509 +3235,512 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;$this-&gt;exportClassesSql(array($class)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;$this-&gt;exportClassesSql(array($class));
</td></tr> </td></tr>
<tr><td>1076</td> <tr><td>1076</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;The&nbsp;create&nbsp;sql&nbsp;query&nbsp;is&nbsp;the&nbsp;first&nbsp;one,&nbsp;and&nbsp;everything&nbsp;else&nbsp;is&nbsp;the&nbsp;alters <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Build&nbsp;array&nbsp;of&nbsp;all&nbsp;the&nbsp;creates
</td></tr> </td></tr>
<tr><td>1077</td> <tr><td>1077</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$create&nbsp;=&nbsp;$sql[0]; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;We&nbsp;need&nbsp;these&nbsp;to&nbsp;happen&nbsp;first
</td></tr> </td></tr>
<tr><td>1078</td> <tr><td>1078</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;foreach&nbsp;($sql&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$query)&nbsp;{
</td></tr> </td></tr>
<tr><td>1079</td> <tr><td>1079</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Remove&nbsp;create&nbsp;from&nbsp;the&nbsp;main&nbsp;array <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(strstr($query,&nbsp;'CREATE'))&nbsp;{
</td></tr> </td></tr>
<tr><td>1080</td> <tr><td>1080</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($sql[0]); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connections[$connectionName]['creates'][]&nbsp;=&nbsp;$query;
</td></tr> </td></tr>
<tr><td>1081</td> <tr><td>1081</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;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Unset&nbsp;the&nbsp;create&nbsp;from&nbsp;sql&nbsp;so&nbsp;we&nbsp;can&nbsp;have&nbsp;an&nbsp;array&nbsp;of&nbsp;everything&nbsp;else&nbsp;but&nbsp;creates
</td></tr> </td></tr>
<tr><td>1082</td> <tr><td>1082</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Store&nbsp;the&nbsp;creates&nbsp;and&nbsp;alters&nbsp;individually&nbsp;so&nbsp;we&nbsp;can&nbsp;merge&nbsp;them&nbsp;back&nbsp;together&nbsp;later <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset($sql[$key]);
</td></tr> </td></tr>
<tr><td>1083</td> <tr><td>1083</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;We&nbsp;need&nbsp;the&nbsp;creates&nbsp;to&nbsp;happen&nbsp;first,&nbsp;then&nbsp;the&nbsp;alters <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>1084</td> <tr><td>1084</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connections[$connectionName]['creates'][]&nbsp;=&nbsp;$create; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1085</td> <tr><td>1085</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connections[$connectionName]['alters']&nbsp;=&nbsp;array_merge($connections[$connectionName]['alters'],&nbsp;$sql); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>1086</td> <tr><td>1086</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;$connections[$connectionName]['alters']&nbsp;=&nbsp;array_merge($connections[$connectionName]['alters'],&nbsp;$sql);
</td></tr> </td></tr>
<tr><td>1087</td> <tr><td>1087</td>
<td class="normal">&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>1088</td> <tr><td>1088</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Loop&nbsp;over&nbsp;all&nbsp;the&nbsp;sql&nbsp;again&nbsp;to&nbsp;merge&nbsp;the&nbsp;creates&nbsp;and&nbsp;alters&nbsp;in&nbsp;to&nbsp;the&nbsp;same&nbsp;array,&nbsp;but&nbsp;so&nbsp;that&nbsp;the&nbsp;alters&nbsp;are&nbsp;at&nbsp;the&nbsp;bottom <td class="normal">
</td></tr> </td></tr>
<tr><td>1089</td> <tr><td>1089</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$build&nbsp;=&nbsp;array(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Loop&nbsp;over&nbsp;all&nbsp;the&nbsp;sql&nbsp;again&nbsp;to&nbsp;merge&nbsp;the&nbsp;creates&nbsp;and&nbsp;alters&nbsp;in&nbsp;to&nbsp;the&nbsp;same&nbsp;array,&nbsp;but&nbsp;so&nbsp;that&nbsp;the&nbsp;alters&nbsp;are&nbsp;at&nbsp;the&nbsp;bottom
</td></tr> </td></tr>
<tr><td>1090</td> <tr><td>1090</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($connections&nbsp;as&nbsp;$connectionName&nbsp;=&gt;&nbsp;$sql)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$build&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>1091</td> <tr><td>1091</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$build[$connectionName]&nbsp;=&nbsp;array_merge($sql['creates'],&nbsp;$sql['alters']); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($connections&nbsp;as&nbsp;$connectionName&nbsp;=&gt;&nbsp;$sql)&nbsp;{
</td></tr> </td></tr>
<tr><td>1092</td> <tr><td>1092</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;$build[$connectionName]&nbsp;=&nbsp;array_merge($sql['creates'],&nbsp;$sql['alters']);
</td></tr> </td></tr>
<tr><td>1093</td> <tr><td>1093</td>
<td class="normal">&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>1094</td> <tr><td>1094</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($build&nbsp;as&nbsp;$connectionName&nbsp;=&gt;&nbsp;$sql)&nbsp;{ <td class="normal">
</td></tr> </td></tr>
<tr><td>1095</td> <tr><td>1095</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connection&nbsp;=&nbsp;Doctrine_Manager::getInstance()-&gt;getConnection($connectionName); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($build&nbsp;as&nbsp;$connectionName&nbsp;=&gt;&nbsp;$sql)&nbsp;{
</td></tr> </td></tr>
<tr><td>1096</td> <tr><td>1096</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;$connection&nbsp;=&nbsp;Doctrine_Manager::getInstance()-&gt;getConnection($connectionName);
</td></tr> </td></tr>
<tr><td>1097</td> <tr><td>1097</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connection-&gt;beginTransaction(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>1098</td> <tr><td>1098</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;$connection-&gt;beginTransaction();
</td></tr> </td></tr>
<tr><td>1099</td> <tr><td>1099</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($sql&nbsp;as&nbsp;$query)&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>1100</td> <tr><td>1100</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;foreach&nbsp;($sql&nbsp;as&nbsp;$query)&nbsp;{
</td></tr> </td></tr>
<tr><td>1101</td> <tr><td>1101</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connection-&gt;exec($query); <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>1102</td> <tr><td>1102</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(Doctrine_Connection_Exception&nbsp;$e)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connection-&gt;exec($query);
</td></tr> </td></tr>
<tr><td>1103</td> <tr><td>1103</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;we&nbsp;only&nbsp;want&nbsp;to&nbsp;silence&nbsp;table&nbsp;already&nbsp;exists&nbsp;errors <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(Doctrine_Connection_Exception&nbsp;$e)&nbsp;{
</td></tr> </td></tr>
<tr><td>1104</td> <tr><td>1104</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;($e-&gt;getPortableCode()&nbsp;!==&nbsp;Doctrine::ERR_ALREADY_EXISTS)&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;we&nbsp;only&nbsp;want&nbsp;to&nbsp;silence&nbsp;table&nbsp;already&nbsp;exists&nbsp;errors
</td></tr> </td></tr>
<tr><td>1105</td> <tr><td>1105</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;$connection-&gt;rollback(); <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;($e-&gt;getPortableCode()&nbsp;!==&nbsp;Doctrine::ERR_ALREADY_EXISTS)&nbsp;{
</td></tr> </td></tr>
<tr><td>1106</td> <tr><td>1106</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_Export_Exception($e-&gt;getMessage()&nbsp;.&nbsp;'.&nbsp;Failing&nbsp;Query:&nbsp;'&nbsp;.&nbsp;$query); <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;$connection-&gt;rollback();
</td></tr> </td></tr>
<tr><td>1107</td> <tr><td>1107</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Export_Exception($e-&gt;getMessage()&nbsp;.&nbsp;'.&nbsp;Failing&nbsp;Query:&nbsp;'&nbsp;.&nbsp;$query);
</td></tr> </td></tr>
<tr><td>1108</td> <tr><td>1108</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1109</td> <tr><td>1109</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1110</td> <tr><td>1110</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>1111</td> <tr><td>1111</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$connection-&gt;commit(); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>1112</td> <tr><td>1112</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;$connection-&gt;commit();
</td></tr> </td></tr>
<tr><td>1113</td> <tr><td>1113</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1114</td> <tr><td>1114</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1115</td> <tr><td>1115</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">
</td></tr> </td></tr>
<tr><td>1116</td> <tr><td>1116</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportClassesSql <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>1117</td> <tr><td>1117</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;method&nbsp;for&nbsp;exporting&nbsp;Doctrine_Record&nbsp;classes&nbsp;to&nbsp;a&nbsp;schema <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportClassesSql
</td></tr> </td></tr>
<tr><td>1118</td> <tr><td>1118</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;method&nbsp;for&nbsp;exporting&nbsp;Doctrine_Record&nbsp;classes&nbsp;to&nbsp;a&nbsp;schema
</td></tr> </td></tr>
<tr><td>1119</td> <tr><td>1119</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Connection_Exception&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;some&nbsp;error&nbsp;other&nbsp;than&nbsp;Doctrine::ERR_ALREADY_EXISTS <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>1120</td> <tr><td>1120</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;occurred&nbsp;during&nbsp;the&nbsp;create&nbsp;table&nbsp;operation <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Connection_Exception&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;some&nbsp;error&nbsp;other&nbsp;than&nbsp;Doctrine::ERR_ALREADY_EXISTS
</td></tr> </td></tr>
<tr><td>1121</td> <tr><td>1121</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$classes <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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;occurred&nbsp;during&nbsp;the&nbsp;create&nbsp;table&nbsp;operation
</td></tr> </td></tr>
<tr><td>1122</td> <tr><td>1122</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$classes
</td></tr> </td></tr>
<tr><td>1123</td> <tr><td>1123</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1124</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportClassesSql(array&nbsp;$classes)
</td></tr>
<tr><td>1125</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1126</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$models&nbsp;=&nbsp;Doctrine::getLoadedModels($classes);
</td></tr>
<tr><td>1127</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1128</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array();
</td></tr>
<tr><td>1129</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1130</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($models&nbsp;as&nbsp;$name)&nbsp;{
</td></tr>
<tr><td>1131</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$record&nbsp;=&nbsp;new&nbsp;$name();
</td></tr>
<tr><td>1132</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;&nbsp;=&nbsp;$record-&gt;getTable();
</td></tr>
<tr><td>1133</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1134</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;$table-&gt;getExportableFormat();
</td></tr>
<tr><td>1135</td>
<td class="normal">
</td></tr>
<tr><td>1136</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;$this-&gt;conn-&gt;export-&gt;createTableSql($data['tableName'],&nbsp;$data['columns'],&nbsp;$data['options']);
</td></tr>
<tr><td>1137</td>
<td class="normal">
</td></tr>
<tr><td>1138</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_array($query))&nbsp;{
</td></tr>
<tr><td>1139</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_merge($sql,&nbsp;$query);
</td></tr>
<tr><td>1140</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>1141</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql[]&nbsp;=&nbsp;$query;
</td></tr>
<tr><td>1142</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1143</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1144</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($table-&gt;getAttribute(Doctrine::ATTR_EXPORT)&nbsp;&amp;&nbsp;Doctrine::EXPORT_PLUGINS)&nbsp;{
</td></tr>
<tr><td>1145</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_merge($sql,&nbsp;$this-&gt;exportPluginsSql($table));
</td></tr>
<tr><td>1146</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1147</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1148</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1149</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_unique($sql);
</td></tr>
<tr><td>1150</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1151</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rsort($sql);
</td></tr>
<tr><td>1152</td>
<td class="normal">
</td></tr>
<tr><td>1153</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;
</td></tr>
<tr><td>1154</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1155</td>
<td class="normal">
</td></tr>
<tr><td>1156</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1157</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportPluginsSql
</td></tr>
<tr><td>1158</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exports&nbsp;plugin&nbsp;tables&nbsp;for&nbsp;given&nbsp;table
</td></tr>
<tr><td>1159</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1160</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;Doctrine_Table&nbsp;$table&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;table&nbsp;in&nbsp;which&nbsp;the&nbsp;plugins&nbsp;belong&nbsp;to
</td></tr>
<tr><td>1161</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;&nbsp;&nbsp;&nbsp;an&nbsp;array&nbsp;of&nbsp;sql&nbsp;strings
</td></tr>
<tr><td>1162</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1163</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportPluginsSql(Doctrine_Table&nbsp;$table)
</td></tr>
<tr><td>1164</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1165</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp; $sql&nbsp;=&nbsp;array();
</td></tr>
<tr><td>1166</td>
<td class="normal">
</td></tr>
<tr><td>1167</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($table-&gt;getTemplates()&nbsp;as&nbsp;$name&nbsp;=&gt;&nbsp;$template)&nbsp;{
</td></tr>
<tr><td>1168</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$plugin&nbsp;=&nbsp;$template-&gt;getPlugin();
</td></tr>
<tr><td>1169</td>
<td class="normal">
</td></tr>
<tr><td>1170</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($plugin&nbsp;===&nbsp;null)&nbsp;{
</td></tr>
<tr><td>1171</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1172</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1173</td>
<td class="normal">
</td></tr>
<tr><td>1174</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;$plugin-&gt;getOption('pluginTable');
</td></tr>
<tr><td>1175</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1176</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Make&nbsp;sure&nbsp;plugin&nbsp;has&nbsp;a&nbsp;valid&nbsp;table
</td></tr>
<tr><td>1177</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($table&nbsp;instanceof&nbsp;Doctrine_Table)&nbsp;{
</td></tr>
<tr><td>1178</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;$table-&gt;getExportableFormat();
</td></tr>
<tr><td>1179</td>
<td class="normal">
</td></tr>
<tr><td>1180</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;$this-&gt;conn-&gt;export-&gt;createTableSql($data['tableName'],&nbsp;$data['columns'],&nbsp;$data['options']);
</td></tr>
<tr><td>1181</td>
<td class="normal">
</td></tr>
<tr><td>1182</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_merge($sql,&nbsp;(array)&nbsp;$query);
</td></tr>
<tr><td>1183</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1184</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1185</td>
<td class="normal">
</td></tr>
<tr><td>1186</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;
</td></tr>
<tr><td>1187</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1188</td>
<td class="normal">
</td></tr>
<tr><td>1189</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1190</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportSql
</td></tr>
<tr><td>1191</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;sql&nbsp;for&nbsp;exporting&nbsp;Doctrine_Record&nbsp;classes&nbsp;to&nbsp;a&nbsp;schema
</td></tr>
<tr><td>1192</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1193</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;if&nbsp;the&nbsp;directory&nbsp;parameter&nbsp;is&nbsp;given&nbsp;this&nbsp;method&nbsp;first&nbsp;iterates
</td></tr>
<tr><td>1194</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;recursively&nbsp;trhough&nbsp;the&nbsp;given&nbsp;directory&nbsp;in&nbsp;order&nbsp;to&nbsp;find&nbsp;any&nbsp;model&nbsp;classes
</td></tr>
<tr><td>1195</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1196</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Then&nbsp;it&nbsp;iterates&nbsp;through&nbsp;all&nbsp;declared&nbsp;classes&nbsp;and&nbsp;creates&nbsp;tables&nbsp;for&nbsp;the&nbsp;ones
</td></tr>
<tr><td>1197</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;that&nbsp;extend&nbsp;Doctrine_Record&nbsp;and&nbsp;are&nbsp;not&nbsp;abstract&nbsp;classes
</td></tr>
<tr><td>1198</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1199</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Connection_Exception&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;some&nbsp;error&nbsp;other&nbsp;than&nbsp;Doctrine::ERR_ALREADY_EXISTS
</td></tr>
<tr><td>1200</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;occurred&nbsp;during&nbsp;the&nbsp;create&nbsp;table&nbsp;operation
</td></tr>
<tr><td>1201</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$directory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional&nbsp;directory&nbsp;parameter
</td></tr>
<tr><td>1202</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>1203</td> <tr><td>1124</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>1204</td> <tr><td>1125</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportSql($directory&nbsp;=&nbsp;null) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportClassesSql(array&nbsp;$classes)
</td></tr> </td></tr>
<tr><td>1205</td> <tr><td>1126</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>1206</td> <tr><td>1127</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($directory&nbsp;!==&nbsp;null)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$models&nbsp;=&nbsp;Doctrine::getLoadedModels($classes);
</td></tr> </td></tr>
<tr><td>1207</td> <tr><td>1128</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$models&nbsp;=&nbsp;Doctrine::loadModels($directory);
</td></tr>
<tr><td>1208</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>1209</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$models&nbsp;=&nbsp;Doctrine::getLoadedModels();
</td></tr>
<tr><td>1210</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1211</td>
<td class="normal">&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>1212</td> <tr><td>1129</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;exportClassesSql($models); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>1213</td> <tr><td>1130</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1131</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($models&nbsp;as&nbsp;$name)&nbsp;{
</td></tr>
<tr><td>1132</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$record&nbsp;=&nbsp;new&nbsp;$name();
</td></tr>
<tr><td>1133</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;&nbsp;=&nbsp;$record-&gt;getTable();
</td></tr>
<tr><td>1134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1135</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;$table-&gt;getExportableFormat();
</td></tr>
<tr><td>1136</td>
<td class="normal">
</td></tr>
<tr><td>1137</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;$this-&gt;conn-&gt;export-&gt;createTableSql($data['tableName'],&nbsp;$data['columns'],&nbsp;$data['options']);
</td></tr>
<tr><td>1138</td>
<td class="normal">
</td></tr>
<tr><td>1139</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_array($query))&nbsp;{
</td></tr>
<tr><td>1140</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_merge($sql,&nbsp;$query);
</td></tr>
<tr><td>1141</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>1142</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql[]&nbsp;=&nbsp;$query;
</td></tr>
<tr><td>1143</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1145</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($table-&gt;getAttribute(Doctrine::ATTR_EXPORT)&nbsp;&amp;&nbsp;Doctrine::EXPORT_PLUGINS)&nbsp;{
</td></tr>
<tr><td>1146</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_merge($sql,&nbsp;$this-&gt;exportPluginsSql($table));
</td></tr>
<tr><td>1147</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1148</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1149</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1150</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_unique($sql);
</td></tr>
<tr><td>1151</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1152</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rsort($sql);
</td></tr>
<tr><td>1153</td>
<td class="normal">
</td></tr>
<tr><td>1154</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;
</td></tr>
<tr><td>1155</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1214</td> <tr><td>1156</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>1215</td> <tr><td>1157</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>1216</td> <tr><td>1158</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportTable <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportPluginsSql
</td></tr> </td></tr>
<tr><td>1217</td> <tr><td>1159</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exports&nbsp;given&nbsp;table&nbsp;into&nbsp;database&nbsp;based&nbsp;on&nbsp;column&nbsp;and&nbsp;option&nbsp;definitions <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exports&nbsp;plugin&nbsp;tables&nbsp;for&nbsp;given&nbsp;table
</td></tr> </td></tr>
<tr><td>1218</td> <tr><td>1160</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>1219</td> <tr><td>1161</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Connection_Exception&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;some&nbsp;error&nbsp;other&nbsp;than&nbsp;Doctrine::ERR_ALREADY_EXISTS <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;Doctrine_Table&nbsp;$table&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;table&nbsp;in&nbsp;which&nbsp;the&nbsp;plugins&nbsp;belong&nbsp;to
</td></tr> </td></tr>
<tr><td>1220</td> <tr><td>1162</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;occurred&nbsp;during&nbsp;the&nbsp;create&nbsp;table&nbsp;operation <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;&nbsp;&nbsp;&nbsp;an&nbsp;array&nbsp;of&nbsp;sql&nbsp;strings
</td></tr> </td></tr>
<tr><td>1221</td> <tr><td>1163</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;whether&nbsp;or&nbsp;not&nbsp;the&nbsp;export&nbsp;operation&nbsp;was&nbsp;successful
</td></tr>
<tr><td>1222</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false&nbsp;if&nbsp;table&nbsp;already&nbsp;existed&nbsp;in&nbsp;the&nbsp;database
</td></tr>
<tr><td>1223</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>1224</td> <tr><td>1164</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportTable(Doctrine_Table&nbsp;$table) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportPluginsSql(Doctrine_Table&nbsp;$table)
</td></tr> </td></tr>
<tr><td>1225</td> <tr><td>1165</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>1226</td> <tr><td>1166</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp; $sql&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>1227</td> <tr><td>1167</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TODO:&nbsp;maybe&nbsp;there&nbsp;should&nbsp;be&nbsp;portability&nbsp;option&nbsp;for&nbsp;the&nbsp;following&nbsp;check
</td></tr>
<tr><td>1228</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;Doctrine::isValidClassname($table-&gt;getOption('declaringClass')-&gt;getName()))&nbsp;{
</td></tr>
<tr><td>1229</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Export_Exception('Class&nbsp;name&nbsp;not&nbsp;valid.');
</td></tr>
<tr><td>1230</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1231</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1232</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>1233</td> <tr><td>1168</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($table-&gt;getTemplates()&nbsp;as&nbsp;$name&nbsp;=&gt;&nbsp;$template)&nbsp;{
</td></tr> </td></tr>
<tr><td>1234</td> <tr><td>1169</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;$table-&gt;getExportableFormat(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$plugin&nbsp;=&nbsp;$template-&gt;getPlugin();
</td></tr> </td></tr>
<tr><td>1235</td> <tr><td>1170</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>1236</td> <tr><td>1171</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;export-&gt;createTable($data['tableName'],&nbsp;$data['columns'],&nbsp;$data['options']); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($plugin&nbsp;===&nbsp;null)&nbsp;{
</td></tr> </td></tr>
<tr><td>1237</td> <tr><td>1172</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(Doctrine_Connection_Exception&nbsp;$e)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;&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>1238</td> <tr><td>1173</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;we&nbsp;only&nbsp;want&nbsp;to&nbsp;silence&nbsp;table&nbsp;already&nbsp;exists&nbsp;errors
</td></tr>
<tr><td>1239</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e-&gt;getPortableCode()&nbsp;!==&nbsp;Doctrine::ERR_ALREADY_EXISTS)&nbsp;{
</td></tr>
<tr><td>1240</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;$e;
</td></tr>
<tr><td>1241</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1242</td> <tr><td>1174</td>
<td class="normal">
</td></tr>
<tr><td>1175</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$table&nbsp;=&nbsp;$plugin-&gt;getOption('pluginTable');
</td></tr>
<tr><td>1176</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1177</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Make&nbsp;sure&nbsp;plugin&nbsp;has&nbsp;a&nbsp;valid&nbsp;table
</td></tr>
<tr><td>1178</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($table&nbsp;instanceof&nbsp;Doctrine_Table)&nbsp;{
</td></tr>
<tr><td>1179</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;$table-&gt;getExportableFormat();
</td></tr>
<tr><td>1180</td>
<td class="normal">
</td></tr>
<tr><td>1181</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;$this-&gt;conn-&gt;export-&gt;createTableSql($data['tableName'],&nbsp;$data['columns'],&nbsp;$data['options']);
</td></tr>
<tr><td>1182</td>
<td class="normal">
</td></tr>
<tr><td>1183</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;array_merge($sql,&nbsp;(array)&nbsp;$query);
</td></tr>
<tr><td>1184</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1185</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1186</td>
<td class="normal">
</td></tr>
<tr><td>1187</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;
</td></tr>
<tr><td>1188</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1189</td>
<td class="normal">
</td></tr>
<tr><td>1190</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1191</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportSql
</td></tr>
<tr><td>1192</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;sql&nbsp;for&nbsp;exporting&nbsp;Doctrine_Record&nbsp;classes&nbsp;to&nbsp;a&nbsp;schema
</td></tr>
<tr><td>1193</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1194</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;if&nbsp;the&nbsp;directory&nbsp;parameter&nbsp;is&nbsp;given&nbsp;this&nbsp;method&nbsp;first&nbsp;iterates
</td></tr>
<tr><td>1195</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;recursively&nbsp;trhough&nbsp;the&nbsp;given&nbsp;directory&nbsp;in&nbsp;order&nbsp;to&nbsp;find&nbsp;any&nbsp;model&nbsp;classes
</td></tr>
<tr><td>1196</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1197</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Then&nbsp;it&nbsp;iterates&nbsp;through&nbsp;all&nbsp;declared&nbsp;classes&nbsp;and&nbsp;creates&nbsp;tables&nbsp;for&nbsp;the&nbsp;ones
</td></tr>
<tr><td>1198</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;that&nbsp;extend&nbsp;Doctrine_Record&nbsp;and&nbsp;are&nbsp;not&nbsp;abstract&nbsp;classes
</td></tr>
<tr><td>1199</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1200</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Connection_Exception&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;some&nbsp;error&nbsp;other&nbsp;than&nbsp;Doctrine::ERR_ALREADY_EXISTS
</td></tr>
<tr><td>1201</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;occurred&nbsp;during&nbsp;the&nbsp;create&nbsp;table&nbsp;operation
</td></tr>
<tr><td>1202</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$directory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional&nbsp;directory&nbsp;parameter
</td></tr>
<tr><td>1203</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>1204</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1205</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportSql($directory&nbsp;=&nbsp;null)
</td></tr>
<tr><td>1206</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1207</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($directory&nbsp;!==&nbsp;null)&nbsp;{
</td></tr>
<tr><td>1208</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$models&nbsp;=&nbsp;Doctrine::loadModels($directory);
</td></tr>
<tr><td>1209</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>1210</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$models&nbsp;=&nbsp;Doctrine::getLoadedModels();
</td></tr>
<tr><td>1211</td>
<td class="normal">&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>1212</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>1213</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;exportClassesSql($models);
</td></tr>
<tr><td>1214</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1215</td>
<td class="normal">
</td></tr>
<tr><td>1216</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1217</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exportTable
</td></tr>
<tr><td>1218</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;exports&nbsp;given&nbsp;table&nbsp;into&nbsp;database&nbsp;based&nbsp;on&nbsp;column&nbsp;and&nbsp;option&nbsp;definitions
</td></tr>
<tr><td>1219</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1220</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;Doctrine_Connection_Exception&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;some&nbsp;error&nbsp;other&nbsp;than&nbsp;Doctrine::ERR_ALREADY_EXISTS
</td></tr>
<tr><td>1221</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;occurred&nbsp;during&nbsp;the&nbsp;create&nbsp;table&nbsp;operation
</td></tr>
<tr><td>1222</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;whether&nbsp;or&nbsp;not&nbsp;the&nbsp;export&nbsp;operation&nbsp;was&nbsp;successful
</td></tr>
<tr><td>1223</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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false&nbsp;if&nbsp;table&nbsp;already&nbsp;existed&nbsp;in&nbsp;the&nbsp;database
</td></tr>
<tr><td>1224</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1225</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exportTable(Doctrine_Table&nbsp;$table)
</td></tr>
<tr><td>1226</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1227</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1228</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TODO:&nbsp;maybe&nbsp;there&nbsp;should&nbsp;be&nbsp;portability&nbsp;option&nbsp;for&nbsp;the&nbsp;following&nbsp;check
</td></tr>
<tr><td>1229</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;Doctrine::isValidClassname($table-&gt;getOption('declaringClass')-&gt;getName()))&nbsp;{
</td></tr>
<tr><td>1230</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Export_Exception('Class&nbsp;name&nbsp;not&nbsp;valid.');
</td></tr>
<tr><td>1231</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1232</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1233</td>
<td class="normal">
</td></tr>
<tr><td>1234</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{
</td></tr>
<tr><td>1235</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;$table-&gt;getExportableFormat();
</td></tr>
<tr><td>1236</td>
<td class="normal">
</td></tr>
<tr><td>1237</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;conn-&gt;export-&gt;createTable($data['tableName'],&nbsp;$data['columns'],&nbsp;$data['options']);
</td></tr>
<tr><td>1238</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(Doctrine_Connection_Exception&nbsp;$e)&nbsp;{
</td></tr>
<tr><td>1239</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;we&nbsp;only&nbsp;want&nbsp;to&nbsp;silence&nbsp;table&nbsp;already&nbsp;exists&nbsp;errors
</td></tr>
<tr><td>1240</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e-&gt;getPortableCode()&nbsp;!==&nbsp;Doctrine::ERR_ALREADY_EXISTS)&nbsp;{
</td></tr>
<tr><td>1241</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;$e;
</td></tr>
<tr><td>1242</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1243</td> <tr><td>1243</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1244</td> <tr><td>1244</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1245</td>
<td class="covered">}</td></tr> <td class="covered">}</td></tr>
</table></body></html> </table></body></html>

View File

@ -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;Builder.php&nbsp;3062&nbsp;2007-11-01&nbsp;23:54:27Z&nbsp;Jonathan.Wage&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Builder.php&nbsp;3082&nbsp;2007-11-08&nbsp;00:29:15Z&nbsp;Jonathan.Wage&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
@ -106,7 +106,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>33</td> <tr><td>33</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3062&nbsp;$ <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3082&nbsp;$
</td></tr> </td></tr>
<tr><td>34</td> <tr><td>34</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;
@ -2524,7 +2524,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($options['is_package_class'])&nbsp;&amp;&amp;&nbsp;$options['is_package_class'])&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($options['is_package_class'])&nbsp;&amp;&amp;&nbsp;$options['is_package_class'])&nbsp;{
</td></tr> </td></tr>
<tr><td>839</td> <tr><td>839</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$path&nbsp;=&nbsp;str_replace('.',&nbsp;DIRECTORY_SEPARATOR,&nbsp;$options['package']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$path&nbsp;=&nbsp;str_replace('.',&nbsp;DIRECTORY_SEPARATOR,&nbsp;trim($options['package']));
</td></tr> </td></tr>
<tr><td>840</td> <tr><td>840</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;

View File

@ -325,7 +325,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_file($s))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(is_file($s))&nbsp;{
</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;$array&nbsp;=&nbsp;array_merge($array,&nbsp;$this-&gt;parseSchema($s,&nbsp;$format)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$array&nbsp;=&nbsp;array_merge($this-&gt;parseSchema($s,&nbsp;$format),&nbsp;$array);
</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;else&nbsp;if&nbsp;(is_dir($s))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;if&nbsp;(is_dir($s))&nbsp;{
@ -349,7 +349,7 @@
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(end($e)&nbsp;===&nbsp;$format)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(end($e)&nbsp;===&nbsp;$format)&nbsp;{
</td></tr> </td></tr>
<tr><td>114</td> <tr><td>114</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;$array&nbsp;=&nbsp;array_merge($array,&nbsp;$this-&gt;parseSchema($file-&gt;getPathName(),&nbsp;$format)); <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;$array&nbsp;=&nbsp;array_merge($this-&gt;parseSchema($file-&gt;getPathName(),&nbsp;$format),&nbsp;$array);
</td></tr> </td></tr>
<tr><td>115</td> <tr><td>115</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}

View File

@ -385,7 +385,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;_migrationClasses)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;_migrationClasses)&nbsp;{
</td></tr> </td></tr>
<tr><td>126</td> <tr><td>126</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;_migrationClasses; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;_migrationClasses;
</td></tr> </td></tr>
<tr><td>127</td> <tr><td>127</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
@ -757,34 +757,34 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>250</td> <tr><td>250</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;loadMigrationClasses(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;loadMigrationClasses();
</td></tr> </td></tr>
<tr><td>251</td> <tr><td>251</td>
<td class="normal">&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>252</td> <tr><td>252</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$versions&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$versions&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>253</td> <tr><td>253</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(array_keys($this-&gt;_migrationClasses)&nbsp;as&nbsp;$classMigrationNum)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(array_keys($this-&gt;_migrationClasses)&nbsp;as&nbsp;$classMigrationNum)&nbsp;{
</td></tr> </td></tr>
<tr><td>254</td> <tr><td>254</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$versions[$classMigrationNum]&nbsp;=&nbsp;$classMigrationNum; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$versions[$classMigrationNum]&nbsp;=&nbsp;$classMigrationNum;
</td></tr> </td></tr>
<tr><td>255</td> <tr><td>255</td>
<td class="red">&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>256</td> <tr><td>256</td>
<td class="normal">&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>257</td> <tr><td>257</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rsort($versions); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rsort($versions);
</td></tr> </td></tr>
<tr><td>258</td> <tr><td>258</td>
<td class="normal">&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>259</td> <tr><td>259</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;isset($versions[0])&nbsp;?&nbsp;$versions[0]:0; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;isset($versions[0])&nbsp;?&nbsp;$versions[0]:0;
</td></tr> </td></tr>
<tr><td>260</td> <tr><td>260</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
@ -871,7 +871,7 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>288</td> <tr><td>288</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>289</td> <tr><td>289</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

View File

@ -364,386 +364,401 @@
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($columns&nbsp;as&nbsp;$column)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($columns&nbsp;as&nbsp;$column)&nbsp;{
</td></tr> </td></tr>
<tr><td>119</td> <tr><td>119</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($column['tableName']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($column['tableName']);
</td></tr> </td></tr>
<tr><td>120</td> <tr><td>120</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>121</td> <tr><td>121</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;alterTable($column['tableName'],&nbsp;array('rename'&nbsp;=&gt;&nbsp;array($column['oldColumnName']&nbsp;=&gt;&nbsp;array('name'&nbsp;=&gt;&nbsp;$column['newColumnName'])))); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$columnList&nbsp;=&nbsp;$conn-&gt;import-&gt;listTableColumns($column['tableName']);
</td></tr> </td></tr>
<tr><td>122</td> <tr><td>122</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($columnList[$column['oldColumnName']]))&nbsp;{
</td></tr> </td></tr>
<tr><td>123</td> <tr><td>123</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;alterTable($column['tableName'],&nbsp;
</td></tr> </td></tr>
<tr><td>124</td> <tr><td>124</td>
<td class="normal"> <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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array('rename'&nbsp;=&gt;&nbsp;array($column['oldColumnName']&nbsp;=&gt;&nbsp;array('name'&nbsp;=&gt;&nbsp;$column['newColumnName'],
</td></tr> </td></tr>
<tr><td>125</td> <tr><td>125</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'definition'=&gt;$columnList[$column['oldColumnName']]))));
</td></tr> </td></tr>
<tr><td>126</td> <tr><td>126</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processChangedColumns <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>127</td> <tr><td>127</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>128</td> <tr><td>128</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$columns&nbsp; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>129</td> <tr><td>129</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">
</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;/**
</td></tr> </td></tr>
<tr><td>131</td> <tr><td>131</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processChangedColumns($columns) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processChangedColumns
</td></tr> </td></tr>
<tr><td>132</td> <tr><td>132</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>133</td> <tr><td>133</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($columns&nbsp;as&nbsp;$column)&nbsp;{
</td></tr>
<tr><td>134</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($column['tableName']);
</td></tr>
<tr><td>135</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>136</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;=&nbsp;array();
</td></tr>
<tr><td>137</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;=&nbsp;$column['options'];
</td></tr>
<tr><td>138</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options['type']&nbsp;=&nbsp;$column['type'];
</td></tr>
<tr><td>139</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>140</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;alterTable($column['tableName'],&nbsp;array('change'&nbsp;=&gt;&nbsp;array($column['columnName']&nbsp;=&gt;&nbsp;array('definition'&nbsp;=&gt;&nbsp;$options))));
</td></tr>
<tr><td>141</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;
</td></tr>
<tr><td>142</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>143</td>
<td class="normal">
</td></tr>
<tr><td>144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>145</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processRemovedColumns
</td></tr>
<tr><td>146</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>147</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$columns&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$columns&nbsp;
</td></tr> </td></tr>
<tr><td>148</td> <tr><td>134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>149</td> <tr><td>135</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>150</td> <tr><td>136</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processRemovedColumns($columns) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processChangedColumns($columns)
</td></tr> </td></tr>
<tr><td>151</td> <tr><td>137</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>152</td> <tr><td>138</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($columns&nbsp;as&nbsp;$column)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($columns&nbsp;as&nbsp;$column)&nbsp;{
</td></tr> </td></tr>
<tr><td>153</td> <tr><td>139</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($column['tableName']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($column['tableName']);
</td></tr> </td></tr>
<tr><td>154</td> <tr><td>140</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>141</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;=&nbsp;array();
</td></tr>
<tr><td>142</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;=&nbsp;$column['options'];
</td></tr>
<tr><td>143</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options['type']&nbsp;=&nbsp;$column['type'];
</td></tr>
<tr><td>144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>145</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;alterTable($column['tableName'],&nbsp;array('change'&nbsp;=&gt;&nbsp;array($column['columnName']&nbsp;=&gt;&nbsp;array('definition'&nbsp;=&gt;&nbsp;$options))));
</td></tr>
<tr><td>146</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;
</td></tr>
<tr><td>147</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>148</td>
<td class="normal">
</td></tr>
<tr><td>149</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>150</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processRemovedColumns
</td></tr>
<tr><td>151</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>152</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$columns&nbsp;
</td></tr>
<tr><td>153</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>154</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>155</td> <tr><td>155</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;alterTable($column['tableName'],&nbsp;array('remove'&nbsp;=&gt;&nbsp;array($column['columnName']&nbsp;=&gt;&nbsp;array()))); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processRemovedColumns($columns)
</td></tr> </td></tr>
<tr><td>156</td> <tr><td>156</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>157</td> <tr><td>157</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($columns&nbsp;as&nbsp;$column)&nbsp;{
</td></tr> </td></tr>
<tr><td>158</td> <tr><td>158</td>
<td class="normal"> <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($column['tableName']);
</td></tr> </td></tr>
<tr><td>159</td> <tr><td>159</td>
<td class="normal">&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>160</td> <tr><td>160</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processAddexIndexes <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;alterTable($column['tableName'],&nbsp;array('remove'&nbsp;=&gt;&nbsp;array($column['columnName']&nbsp;=&gt;&nbsp;array())));
</td></tr> </td></tr>
<tr><td>161</td> <tr><td>161</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="red">&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;@param&nbsp;string&nbsp;$indexes&nbsp; <td class="red">&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;void <td class="normal">
</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;/**
</td></tr> </td></tr>
<tr><td>165</td> <tr><td>165</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processAddedIndexes($indexes) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processAddexIndexes
</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;*
</td></tr> </td></tr>
<tr><td>167</td> <tr><td>167</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($indexes&nbsp;as&nbsp;$index)&nbsp;{
</td></tr>
<tr><td>168</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($index['tableName']);
</td></tr>
<tr><td>169</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr><td>170</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;createIndex($index['tableName'],&nbsp;$index['indexName'],&nbsp;$index['definition']);
</td></tr>
<tr><td>171</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>172</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>173</td>
<td class="normal">
</td></tr>
<tr><td>174</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>175</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processRemovedIndexes
</td></tr>
<tr><td>176</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>177</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$indexes&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$indexes&nbsp;
</td></tr> </td></tr>
<tr><td>178</td> <tr><td>168</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>179</td> <tr><td>169</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>180</td> <tr><td>170</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processRemovedIndexes($indexes) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processAddedIndexes($indexes)
</td></tr> </td></tr>
<tr><td>181</td> <tr><td>171</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>182</td> <tr><td>172</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($indexes&nbsp;as&nbsp;$index)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($indexes&nbsp;as&nbsp;$index)&nbsp;{
</td></tr> </td></tr>
<tr><td>183</td> <tr><td>173</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($index['tableName']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($index['tableName']);
</td></tr> </td></tr>
<tr><td>184</td> <tr><td>174</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>175</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;createIndex($index['tableName'],&nbsp;$index['indexName'],&nbsp;$index['definition']);
</td></tr>
<tr><td>176</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>177</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>178</td>
<td class="normal">
</td></tr>
<tr><td>179</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>180</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processRemovedIndexes
</td></tr>
<tr><td>181</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>182</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$indexes&nbsp;
</td></tr>
<tr><td>183</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>184</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>185</td> <tr><td>185</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;dropIndex($index['tableName'],&nbsp;$index['indexName']); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processRemovedIndexes($indexes)
</td></tr> </td></tr>
<tr><td>186</td> <tr><td>186</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>187</td> <tr><td>187</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($indexes&nbsp;as&nbsp;$index)&nbsp;{
</td></tr> </td></tr>
<tr><td>188</td> <tr><td>188</td>
<td class="normal"> <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($index['tableName']);
</td></tr> </td></tr>
<tr><td>189</td> <tr><td>189</td>
<td class="normal">&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>190</td> <tr><td>190</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processCreatedConstraints <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;dropIndex($index['tableName'],&nbsp;$index['indexName']);
</td></tr> </td></tr>
<tr><td>191</td> <tr><td>191</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;
</td></tr> </td></tr>
<tr><td>192</td> <tr><td>192</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$constraints&nbsp; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>193</td> <tr><td>193</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">
</td></tr> </td></tr>
<tr><td>194</td> <tr><td>194</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>195</td> <tr><td>195</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processCreatedConstraints($constraints) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processCreatedConstraints
</td></tr> </td></tr>
<tr><td>196</td> <tr><td>196</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>197</td> <tr><td>197</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($constraints&nbsp;as&nbsp;$constraint)&nbsp;{
</td></tr>
<tr><td>198</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($constraint['tableName']);
</td></tr>
<tr><td>199</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;createConstraint($constraint['tableName'],&nbsp;$constraint['constraintName'],
</td></tr>
<tr><td>200</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$constraint['definition']);
</td></tr>
<tr><td>201</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>202</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>203</td>
<td class="normal">
</td></tr>
<tr><td>204</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>205</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processDroppedConstraints
</td></tr>
<tr><td>206</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>207</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$constraints&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$constraints&nbsp;
</td></tr> </td></tr>
<tr><td>208</td> <tr><td>198</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>209</td> <tr><td>199</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>210</td> <tr><td>200</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processDroppedConstraints($constraints) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processCreatedConstraints($constraints)
</td></tr> </td></tr>
<tr><td>211</td> <tr><td>201</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>212</td> <tr><td>202</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($constraints&nbsp;as&nbsp;$constraint)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($constraints&nbsp;as&nbsp;$constraint)&nbsp;{
</td></tr> </td></tr>
<tr><td>213</td> <tr><td>203</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($constraint['tableName']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($constraint['tableName']);
</td></tr> </td></tr>
<tr><td>204</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;createConstraint($constraint['tableName'],&nbsp;$constraint['constraintName'],
</td></tr>
<tr><td>205</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$constraint['definition']);
</td></tr>
<tr><td>206</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>207</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>208</td>
<td class="normal">
</td></tr>
<tr><td>209</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>210</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processDroppedConstraints
</td></tr>
<tr><td>211</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>212</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$constraints&nbsp;
</td></tr>
<tr><td>213</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>214</td> <tr><td>214</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;dropConstraint($constraint['tableName'],&nbsp;$constraint['constraintName'], <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>215</td> <tr><td>215</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$constraint['primary']); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processDroppedConstraints($constraints)
</td></tr> </td></tr>
<tr><td>216</td> <tr><td>216</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>217</td> <tr><td>217</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($constraints&nbsp;as&nbsp;$constraint)&nbsp;{
</td></tr> </td></tr>
<tr><td>218</td> <tr><td>218</td>
<td class="normal"> <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($constraint['tableName']);
</td></tr> </td></tr>
<tr><td>219</td> <tr><td>219</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;dropConstraint($constraint['tableName'],&nbsp;$constraint['constraintName'],
</td></tr> </td></tr>
<tr><td>220</td> <tr><td>220</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processCreatedFks <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$constraint['primary']);
</td></tr> </td></tr>
<tr><td>221</td> <tr><td>221</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>222</td> <tr><td>222</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$foreignKeys&nbsp; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>223</td> <tr><td>223</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>224</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>225</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processCreatedFks($foreignKeys)
</td></tr>
<tr><td>226</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>227</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($foreignKeys&nbsp;as&nbsp;$fk)&nbsp;{
</td></tr>
<tr><td>228</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($fk['tableName']);
</td></tr>
<tr><td>229</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;createForeignKey($fk['tableName'],&nbsp;$fk['definition']);
</td></tr>
<tr><td>230</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>231</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>232</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>233</td> <tr><td>224</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>234</td> <tr><td>225</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processDroppedFks <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processCreatedFks
</td></tr> </td></tr>
<tr><td>235</td> <tr><td>226</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>236</td> <tr><td>227</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$foreignKeys&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$foreignKeys&nbsp;
</td></tr> </td></tr>
<tr><td>237</td> <tr><td>228</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>238</td> <tr><td>229</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>239</td> <tr><td>230</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processDroppedFks($foreignKeys) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processCreatedFks($foreignKeys)
</td></tr> </td></tr>
<tr><td>240</td> <tr><td>231</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>241</td> <tr><td>232</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($foreignKeys&nbsp;as&nbsp;$fk)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($foreignKeys&nbsp;as&nbsp;$fk)&nbsp;{
</td></tr> </td></tr>
<tr><td>242</td> <tr><td>233</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($fk['tableName']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($fk['tableName']);
</td></tr> </td></tr>
<tr><td>243</td> <tr><td>234</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;dropForeignKey($fk['tableName'],&nbsp;$fk['fkName']); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;createForeignKey($fk['tableName'],&nbsp;$fk['definition']);
</td></tr> </td></tr>
<tr><td>244</td> <tr><td>235</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>245</td> <tr><td>236</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>237</td>
<td class="normal">
</td></tr>
<tr><td>238</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>239</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;processDroppedFks
</td></tr>
<tr><td>240</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>241</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$foreignKeys&nbsp;
</td></tr>
<tr><td>242</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>243</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>244</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;processDroppedFks($foreignKeys)
</td></tr>
<tr><td>245</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>246</td> <tr><td>246</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($foreignKeys&nbsp;as&nbsp;$fk)&nbsp;{
</td></tr>
<tr><td>247</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn&nbsp;=&nbsp;$this-&gt;getConnection($fk['tableName']);
</td></tr>
<tr><td>248</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$conn-&gt;export-&gt;dropForeignKey($fk['tableName'],&nbsp;$fk['fkName']);
</td></tr>
<tr><td>249</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>250</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>251</td>
<td class="covered">}</td></tr> <td class="covered">}</td></tr>
</table></body></html> </table></body></html>

File diff suppressed because it is too large Load Diff

View File

@ -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;Record.php&nbsp;3079&nbsp;2007-11-07&nbsp;15:38:20Z&nbsp;romanb&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Record.php&nbsp;3090&nbsp;2007-11-08&nbsp;18:54:55Z&nbsp;Jonathan.Wage&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
@ -103,7 +103,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>32</td> <tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3079&nbsp;$ <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3090&nbsp;$
</td></tr> </td></tr>
<tr><td>33</td> <tr><td>33</td>
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*/
@ -3511,7 +3511,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this&nbsp;as&nbsp;$column&nbsp;=&gt;&nbsp;$value)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($this&nbsp;as&nbsp;$column&nbsp;=&gt;&nbsp;$value)&nbsp;{
</td></tr> </td></tr>
<tr><td>1168</td> <tr><td>1168</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($value&nbsp;===&nbsp;self::$_null)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($value&nbsp;===&nbsp;self::$_null&nbsp;||&nbsp;is_object($value))&nbsp;{
</td></tr> </td></tr>
<tr><td>1169</td> <tr><td>1169</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;null; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;null;
@ -3577,16 +3577,16 @@
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($array&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$value)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($array&nbsp;as&nbsp;$key&nbsp;=&gt;&nbsp;$value)&nbsp;{
</td></tr> </td></tr>
<tr><td>1190</td> <tr><td>1190</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;getTable()-&gt;hasRelation($key)&nbsp;&amp;&amp;&nbsp;$value)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;getTable()-&gt;hasRelation($key))&nbsp;{
</td></tr> </td></tr>
<tr><td>1191</td> <tr><td>1191</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;$key-&gt;fromArray($value); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;$key-&gt;fromArray($value);
</td></tr> </td></tr>
<tr><td>1192</td> <tr><td>1192</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;if($this-&gt;getTable()-&gt;hasColumn($key)&nbsp;&amp;&amp;&nbsp;$value)&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;if($this-&gt;getTable()-&gt;hasColumn($key))&nbsp;{
</td></tr> </td></tr>
<tr><td>1193</td> <tr><td>1193</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;$key&nbsp;=&nbsp;$value; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;set($key,&nbsp;$value);
</td></tr> </td></tr>
<tr><td>1194</td> <tr><td>1194</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}

View File

@ -3139,7 +3139,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($this-&gt;_identityMap[$id]))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($this-&gt;_identityMap[$id]))&nbsp;{
</td></tr> </td></tr>
<tr><td>1044</td> <tr><td>1044</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>1045</td> <tr><td>1045</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
@ -4666,7 +4666,7 @@
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>1553</td> <tr><td>1553</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;_options['queryParts'][$queryPart]; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;_options['queryParts'][$queryPart];
</td></tr> </td></tr>
<tr><td>1554</td> <tr><td>1554</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}

View File

@ -253,7 +253,7 @@
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>82</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;hasMany($className&nbsp;.&nbsp;'&nbsp;as&nbsp;Translation',&nbsp;array('local'&nbsp;=&gt;&nbsp;$id,&nbsp;'foreign'&nbsp;=&gt;&nbsp;$id)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;hasMany($className&nbsp;.&nbsp;'&nbsp;as&nbsp;Translation',&nbsp;array('local'&nbsp;=&gt;&nbsp;$id[0],&nbsp;'foreign'&nbsp;=&gt;&nbsp;$id[0]));
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>83</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long