[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [bug #5312] delete record function (sql_builder)
From: |
nobody |
Subject: |
[Phpgroupware-tracker] [bug #5312] delete record function (sql_builder) |
Date: |
Mon, 15 Sep 2003 19:13:06 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030827 Galeon/1.3.8 |
=================== BUG #5312: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5312&group_id=509
Changes by: Edgar Luna <address@hidden>
Date: Mon 09/15/03 at 17:13 (America/Mexico_City)
------------------ Additional Follow-up Comments ----------------------------
ok, from the doc:
http://co.com.mx/~eald/phpdoc-sql/sql/sql_builder.html#method_delete
you need to call the delete method in the entity, not in builder. I'm doing a
delete that accept tokens now. Wait a bit for it
=================== BUG #5312: FULL BUG SNAPSHOT ===================
Submitted by: jarg Project: phpGroupWare
Submitted on: Mon 09/15/03 at 08:54
Category: API - phpGWapi Bug Group: 0.9.16RC1
Severity: 5 - Major Priority: None
Resolution: None Assigned to: eald
Status: Open Component Version: None
Platform Version: None Reproducibility: None
Summary: delete record function (sql_builder)
Original Submission: i don't know if this is a bug or i don't know how to use
this function. I want delete one record with 2 criterias.
function delete_org_person_relation($org_id, $person_id,
$action=PHPGW_SQL_RUN_SQL)
{
return
$this->_delete(sql_criteria::and_(sql_criteria::equal('my_org_id', $org_id),
sql_criteria::equal('my_person_id',
$person_id)), $action); }
but i have this error:
Fatal error: Call to a member function on a non-object in
/home/jarg/public_html/phpgroupware/phpgwapi/inc/class.sql_builder.inc.php on
line 971
Follow-up Comments
*******************
-------------------------------------------------------
Date: Mon 09/15/03 at 17:13 By: eald
ok, from the doc:
http://co.com.mx/~eald/phpdoc-sql/sql/sql_builder.html#method_delete
you need to call the delete method in the entity, not in builder. I'm doing a
delete that accept tokens now. Wait a bit for it
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5312&group_id=509
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/