diff --git a/src/Mongolid/ActiveRecord.php b/src/Mongolid/ActiveRecord.php
index <HASH>..<HASH> 100644
--- a/src/Mongolid/ActiveRecord.php
+++ b/src/Mongolid/ActiveRecord.php
@@ -228,4 +228,14 @@ abstract class ActiveRecord
 
         return $this->getDataMapper()->$action($this);
     }
+
+    /**
+     * Getter for the $collection attribute.
+     *
+     * @return string
+     */
+    public function getCollectionName()
+    {
+        return $this->collection;
+    }
 }
diff --git a/tests/Mongolid/ActiveRecordTest.php b/tests/Mongolid/ActiveRecordTest.php
index <HASH>..<HASH> 100644
--- a/tests/Mongolid/ActiveRecordTest.php
+++ b/tests/Mongolid/ActiveRecordTest.php
@@ -262,4 +262,13 @@ class ActiveRecordTest extends TestCase
         $this->assertInstanceOf(DataMapper\DataMapper::class, $result);
         $this->assertEquals($schema, $result->schema);
     }
+
+    public function testShouldGetCollectionName()
+    {
+        $entity = new class extends ActiveRecord {
+            public $collection = 'collection_name';
+        };
+
+        $this->assertEquals($entity->getCollectionName(), 'collection_name');
+    }
 }
Added getter for $collection attribute