Ticket #3529: patch.diff
| File patch.diff, 0.9 kB (added by w.piekutowski, 7 months ago) |
|---|
-
lib/sfPropelFinder.php
old new 73 73 public function getLatestQuery() 74 74 { 75 75 $con = Propel::getConnection(); 76 if (method_exists($con, 'getLastExecutedQuery'))76 if (SF_DEBUG === TRUE) 77 77 { 78 78 return $this->latestQuery; 79 79 } 80 80 else 81 81 { 82 throw new Exception('getLatestQuery() only works when debug mode is enabled');82 throw new RuntimeException('sfPropelFinder#getLatestQuery() only works when debug mode is enabled'); 83 83 } 84 84 } 85 85 86 86 public function updateLatestQuery() 87 87 { 88 88 $con = Propel::getConnection(); 89 if (method_exists($con, 'getLastExecutedQuery'))89 if (SF_DEBUG === TRUE) 90 90 { 91 91 $this->latestQuery = $con->getLastExecutedQuery(); 92 92 }