Skip to content

Commit ef82577

Browse files
committed
Make get* protected to allow overloads
1 parent 9ad5d97 commit ef82577

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dbObject.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function delete () {
297297
*
298298
* @return dbObject|array
299299
*/
300-
private function byId ($id, $fields = null) {
300+
protected function byId ($id, $fields = null) {
301301
$this->db->where (MysqliDb::$prefix . $this->dbTable . '.' . $this->primaryKey, $id);
302302
return $this->getOne ($fields);
303303
}
@@ -310,7 +310,7 @@ private function byId ($id, $fields = null) {
310310
*
311311
* @return dbObject
312312
*/
313-
private function getOne ($fields = null) {
313+
protected function getOne ($fields = null) {
314314
$this->processHasOneWith ();
315315
$results = $this->db->ArrayBuilder()->getOne ($this->dbTable, $fields);
316316
if ($this->db->count == 0)
@@ -340,7 +340,7 @@ private function getOne ($fields = null) {
340340
*
341341
* @return array Array of dbObjects
342342
*/
343-
private function get ($limit = null, $fields = null) {
343+
protected function get ($limit = null, $fields = null) {
344344
$objects = Array ();
345345
$this->processHasOneWith ();
346346
$results = $this->db->ArrayBuilder()->get ($this->dbTable, $limit, $fields);

0 commit comments

Comments
 (0)