protected function _newId($primary) { if (!$primary || count((array) $primary) > 1) { return null; } $typeName = $this->schema()->columnType($primary[0]); $type = Type::build($typeName); return $type->newId(); }