/** Delete the relationship from the DB **/ public function delete(PDO $db = NULL) { if (is_null($db)) { $db = $this->_db; } $relationship = get_class($this); $query = self::sqlDelete($relationship); $s = TLO::prepare($db, $query); TLO::execute($s, array_values($this->getKeys())); }