diff --git a/lib/Record.php b/lib/Record.php
index <HASH>..<HASH> 100644
--- a/lib/Record.php
+++ b/lib/Record.php
@@ -515,6 +515,8 @@ class Record extends Base implements \ArrayAccess, \IteratorAggregate, \Countabl
     public function set($name, $value = null)
     {
         $this->loaded = true;
+
+        // Set record for collection
         if (!$this->data && $value instanceof static) {
             $this->isColl = true;
         }
diff --git a/tests/unit/DbTest.php b/tests/unit/DbTest.php
index <HASH>..<HASH> 100644
--- a/tests/unit/DbTest.php
+++ b/tests/unit/DbTest.php
@@ -1750,7 +1750,6 @@ class DbTest extends TestCase
 

         $member['table'] = 234;

 

-

         $this->assertNotEquals(234, $member->getTable());

         $this->assertEquals('member', $member->getTable());

     }
added commen for changd coll status in set method