/** * @param Connection $db * @return ActiveRecord[] */ public function all($db = null) { $responses = parent::all($db); $modelClass = $this->modelClass; $marshaller = new \Aws\DynamoDb\Marshaler(); return array_map(function ($value) use($marshaller) { return $this->createModel($value, $marshaller); }, $responses[$modelClass::tableName()]); }
/** * Executes query and returns all results as an array. * @param Connection $db The DB connection used to create the DB command. * If null, the DB connection returned by [[modelClass]] will be used. * @return array|ActiveRecord[] the query results. If the query results in nothing, an empty array will be returned. */ public function all($db = null) { return parent::all($db); }