| @@ 1759-1766 (lines=8) @@ | ||
| 1756 | * |
|
| 1757 | * @return $this|ORM |
|
| 1758 | */ |
|
| 1759 | public function where_id_is($id) |
|
| 1760 | { |
|
| 1761 | if (is_array($this->_get_id_column_name())) { |
|
| 1762 | return $this->where($this->_get_compound_id_column_values($id), null); |
|
| 1763 | } else { |
|
| 1764 | return $this->where($this->_get_id_column_name(), $id); |
|
| 1765 | } |
|
| 1766 | } |
|
| 1767 | ||
| 1768 | /** |
|
| 1769 | * Allows adding a WHERE clause that matches any of the conditions |
|
| @@ 2159-2166 (lines=8) @@ | ||
| 2156 | * |
|
| 2157 | * @return $this|ORM |
|
| 2158 | */ |
|
| 2159 | public function having_id_is($id) |
|
| 2160 | { |
|
| 2161 | if (is_array($this->_get_id_column_name())) { |
|
| 2162 | return $this->having($this->_get_compound_id_column_values($id)); |
|
| 2163 | } else { |
|
| 2164 | return $this->having($this->_get_id_column_name(), $id); |
|
| 2165 | } |
|
| 2166 | } |
|
| 2167 | ||
| 2168 | /** |
|
| 2169 | * Add a HAVING ... LIKE clause to your query. |
|