From 81beddc161e7e1696b6f65b72df79617cd65dede Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 29 Jun 2017 11:49:22 +1200 Subject: [PATCH] Add deprecated method to make CMS tests work --- src/ORM/Connect/Query.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ORM/Connect/Query.php b/src/ORM/Connect/Query.php index 1d7497ffa..6ad5e6353 100644 --- a/src/ORM/Connect/Query.php +++ b/src/ORM/Connect/Query.php @@ -95,6 +95,15 @@ abstract class Query implements \IteratorAggregate return $this->getIterator()->current(); } + /** + * @deprecated Use record() instead + * @return array + */ + public function first() + { + return $this->record(); + } + /** * Returns the first column of the first record. *