mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
- Multiple fixes and CI setup
This commit is contained in:
24
AltStoreCore/Model/BaseEntity.swift
Normal file
24
AltStoreCore/Model/BaseEntity.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// BaseEntity.swift
|
||||
// AltStore
|
||||
//
|
||||
// Created by Magesh K on 28/01/25.
|
||||
// Copyright © 2025 SideStore. All rights reserved.
|
||||
//
|
||||
|
||||
import CoreData
|
||||
|
||||
public class BaseEntity: NSManagedObject, Fetchable
|
||||
{
|
||||
@nonobjc class func fetchRequest<T>() -> NSFetchRequest<T>
|
||||
{
|
||||
fatalError("method not implemented, subclass needs to provide an implementation")
|
||||
}
|
||||
|
||||
internal override init(entity: NSEntityDescription, insertInto context: NSManagedObjectContext?)
|
||||
{
|
||||
super.init(entity: entity, insertInto: context)
|
||||
|
||||
// print("\(BaseEntity.self):\(type(of: self)): Inserting: \(entity.name ?? "nil") into context: \(String(describing: context))")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user