From 526f31bd05c74ffc8e68d080dd116c1a81b85942 Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 29 Sep 2007 14:45:38 +0000 Subject: [PATCH] --- lib/Doctrine/Search.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/Doctrine/Search.php b/lib/Doctrine/Search.php index 813f58320..f09535019 100644 --- a/lib/Doctrine/Search.php +++ b/lib/Doctrine/Search.php @@ -95,6 +95,20 @@ class Doctrine_Search } } } + /** + * savePending + * + * @param Doctrine_Record $record + * @return integer + */ + public function savePending($tableName, $id, $conn = null) + { + if ( ! ($conn instanceof Doctrine_Connection)) { + $conn = Doctrine_Manager::connection(); + } + + $conn->insert($tableName, array('foreign_id' => $id)); + } public function buildDefinition(Doctrine_Table $table) { $name = $table->getComponentName();