/** * Creates a new Save Request with the specified context * * @param MManagedObjectContext $context The context in which this * Save Request will be performed * * @return MSaveRequest The newly created Save Request */ public function __construct(MManagedObjectContext $context) { parent::__construct(MPersistentStoreRequest::SaveRequestType, $context); $this->insertManagedObjects = null; $this->updateManagedObjects = null; $this->deleteManagedObjects = null; }
/** * Creates a new instance of the MFetchRequest class which defines * a request to be sent to the data store * * @param MEntityDescription $entity The entity you wish to fetch * @param MManagedObjectContext $context The context in which this * request will be performed * * @return MFetchRequest The newly created Fetch Request instance */ public function __construct(MEntityDescription $entity, MManagedObjectContext $context) { parent::__construct(MPersistentStoreRequest::FetchRequestType, $context); $this->entity = $entity; $this->predicate = null; }
/** * Creates a new instance of the MFaultRequest class * * This method creates a new instance of the MFaultRequest class and takes * the context where the fault operation is to be performed. * * @param MManagedObjectContext $context The context where the fault operation * is to be performed. * * @return MFaultRequest The newly created MFaultRequest instance */ public function __construct(MManagedObjectContext $context) { parent::__construct(MPersistentStoreRequest::FaultRequestType, $context); $this->faults = new MMutableArray(); }