public function createActiveRecord($readProperties, $selfCondition)
    {
        $activeRecord = new static();
        // ORM handling
        $activeRecord->_readProperties = $readProperties;
        // Primary key condition to ensure single query result 
        $activeRecord->_selfCondition = $selfCondition;

        return $activeRecord;
    }
public function createActiveRecord($readProperties, $selfCondition)
    {
        $activeRecord = new static();
        // ORM handling
        $activeRecord->_readProperties = $readProperties;
        // Primary key condition to ensure single query result 
        $activeRecord->_selfCondition = $selfCondition;

        return $activeRecord;
    }
public function createActiveRecord ( $ readProperties , $ selfCondition ) { $ activeRecord = new static ( ) ; // ORM handling $ activeRecord -> _readProperties = $ readProperties ; // Primary key condition to ensure single query result  $ activeRecord -> _selfCondition = $ selfCondition ; return $ activeRecord ; }
New a Active Record from Model by data

@param array $readProperties
@param array $selfCondition
@return object ActiveRecord(Model)
New a Active Record from Model by data