src/services/Model.php 1 location
|
@@ 572-587 (lines=16) @@
|
569 |
|
* @param $identifier |
570 |
|
* @return BaseModel|null |
571 |
|
*/ |
572 |
|
public function findCache($identifier) |
573 |
|
{ |
574 |
|
|
575 |
|
if ($identifier instanceof Record) { |
576 |
|
|
577 |
|
return $this->findCacheByRecord($identifier); |
578 |
|
|
579 |
|
} elseif (is_numeric($identifier)) { |
580 |
|
|
581 |
|
return $this->findCacheById($identifier); |
582 |
|
|
583 |
|
} |
584 |
|
|
585 |
|
return null; |
586 |
|
|
587 |
|
} |
588 |
|
|
589 |
|
/** |
590 |
|
* Find an existing cache by ID |
src/services/Object.php 1 location
|
@@ 575-590 (lines=16) @@
|
572 |
|
* @param $identifier |
573 |
|
* @return BaseObject|null |
574 |
|
*/ |
575 |
|
public function findCache($identifier) |
576 |
|
{ |
577 |
|
|
578 |
|
if ($identifier instanceof Record) { |
579 |
|
|
580 |
|
return $this->findCacheByRecord($identifier); |
581 |
|
|
582 |
|
} elseif (is_numeric($identifier)) { |
583 |
|
|
584 |
|
return $this->findCacheById($identifier); |
585 |
|
|
586 |
|
} |
587 |
|
|
588 |
|
return null; |
589 |
|
|
590 |
|
} |
591 |
|
|
592 |
|
/** |
593 |
|
* Find an existing cache by ID |