1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Possibility to override Doctrine_Record::delete()

This commit is contained in:
doctrine 2006-04-15 18:12:46 +00:00
parent f0d74ea111
commit be1d5f168e
3 changed files with 3 additions and 2 deletions

View File

@ -600,7 +600,7 @@ class Doctrine_DQL_Parser {
foreach($parts as $part) {
$ret[] = $this->parseWhere($part);
}
$r = implode(" || ",$ret);
$r = implode(" OR ",$ret);
} else {
return $this->loadWhere($parts[0]);
}

View File

@ -725,7 +725,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
*
* @return boolean true on success, false on failure
*/
final public function delete() {
public function delete() {
$this->table->getSession()->delete($this);
}
/**

View File

@ -88,6 +88,7 @@ class Doctrine_DQL_ParserTestCase extends Doctrine_UnitTestCase {
// DYNAMIC FETCHMODES
$e = false;
try {
$users = $graph->query("FROM User-unknown");
} catch(Exception $e) {