diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php index 78cd053c39..9d539a54e8 100644 --- a/lib/classes/record/adapter.php +++ b/lib/classes/record/adapter.php @@ -264,8 +264,14 @@ class record_adapter implements RecordInterface, cache_cacheableInterface * Return collection_id of the record * * @return int + * @deprecated use {@link self::getCollectionId} instead. */ public function get_collection_id() + { + return $this->getCollectionId(); + } + + public function getCollectionId() { return $this->collection_id; } @@ -1786,12 +1792,6 @@ class record_adapter implements RecordInterface, cache_cacheableInterface return $this; } - /** {@inheritdoc} */ - public function getCollectionId() - { - return $this->get_collection()->get_coll_id(); - } - /** {@inheritdoc} */ public function getDataboxId() {