Status: Accepted
Owner: jack.bates
Labels: Type-Defect Priority-Critical Milestone-Release-1.1
Component-Routing
New issue 1740 by [email protected]: Can't delete an information object
http://code.google.com/p/qubit-toolkit/issues/detail?id=1740
To reproduce this error:
========================
1) Create an information object or open an existing one
2) Try to remove it
Resulting error:
================
Fatal error: Call to a member function prepare() on a non-object in
lib/model/QubitObject.php on line 169
Expected result:
================
It should be removed.
My temporary solution was:
Index: QubitObject.php
===================================================================
--- QubitObject.php (revision 7793)
+++ QubitObject.php (working copy)
@@ -165,6 +165,11 @@
public function delete($connection = null)
{
+ if (null === $connection)
+ {
+ $connection = Propel::getConnection(QubitObject::DATABASE_NAME);
+ }
+
$statement = $connection->prepare('
DELETE FROM '.QubitSlug::TABLE_NAME.'
WHERE '.QubitSlug::OBJECT_ID.' = ?');
--
You received this message because you are subscribed to the Google Groups "Qubit
Toolkit Issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-issues?hl=en.