Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:44:44+00:00 2026-06-18T15:44:44+00:00

This code: entity = [NSEntityDescription entityForName:@PerDestinationsStat inManagedObjectContext:self.managedObjectContext]; [fetchRequest setEntity:entity]; //NSFetchedPropertyDescription *rateCodeDesc = [entity.propertiesByName objectForKey:@rateCode];

  • 0

This code:

    entity = [NSEntityDescription entityForName:@"PerDestinationsStat" inManagedObjectContext:self.managedObjectContext];
    [fetchRequest setEntity:entity];
    //NSFetchedPropertyDescription *rateCodeDesc = [entity.propertiesByName objectForKey:@"rateCode"];
    [fetchRequest setPropertiesToGroupBy:[NSArray arrayWithObjects:[entity.propertiesByName objectForKey:@"rateCode"],[entity.propertiesByName objectForKey:@"rateCountry"],[entity.propertiesByName objectForKey:@"rateSpecific"],[entity.propertiesByName objectForKey:@"ratePrice"],[entity.propertiesByName objectForKey:@"allCalls"],[entity.propertiesByName objectForKey:@"acd"],[entity.propertiesByName objectForKey:@"asr"],[entity.propertiesByName objectForKey:@"cost"],[entity.propertiesByName objectForKey:@"duration"],[entity.propertiesByName objectForKey:@"income"],[entity.propertiesByName objectForKey:@"succesefulCalls"],nil]];
    [fetchRequest setResultType:NSDictionaryResultType];
    [fetchRequest setPropertiesToFetch:[NSArray arrayWithObjects:@"rateCode",@"rateCountry",@"rateSpecific",@"ratePrice",@"allCalls",@"acd",@"asr",@"cost",@"duration",@"income",@"succesefulCalls",nil]];
    predicate = [NSPredicate predicateWithFormat:@"(perHourStat.dateFrom > %@) and (perHourStat.dateTo < %@) and (perHourStat.originator.company == %@)",from,to,selected];
    [fetchRequest setPredicate:predicate];
    fetchedObjects = [self.managedObjectContext executeFetchRequest:fetchRequest error:&error];

find no objects, but if i using :

    predicate = [NSPredicate predicateWithFormat:@" (perHourStat.originator.company == %@)",selected];

object finded:

> Printing description of fetchedObjects: <_PFArray 0x100664fb0>(
> <PerHourStat: 0x101233810> (entity: PerHourStat; id: 0x10122f310
> <x-coredata://BBDDF3D7-EA50-4290-B03A-05349E74467E/PerHourStat/p1> ;
> data: {
>     acd = "0.03688591122627258";
>     allCalls = 3;
>     asr = 1;
>     cost = "0.1327892804145813";
>     dateFrom = "2013-02-11 21:00:00 +0000";
>     dateTo = "2013-02-11 21:59:59 +0000";
>     duration = "6.639464020729065";
>     income = "0.1991839206218719";
>     originator = "0x101236000 <x-coredata://BBDDF3D7-EA50-4290-B03A-05349E74467E/Originator/p1>";
>     perDestinationsStat = "<relationship fault: 0x104d2b9b0 'perDestinationsStat'>";
>     succesefulCalls = 3;
>     terminator = nil; })

from/to is matched dateFrom in finded object:

> description of from: 2013-02-11 22:00:00 +0000
> description of to: 2013-02-12 21:59:59 +0000
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:44:46+00:00Added an answer on June 18, 2026 at 3:44 pm

    You are comparing the same date 21:00 > 22:00. This will clearly match 0 records.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this piece of code: @Entity @Table(name = MOVERS) public class MOVers implements
This code using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using System.Data.Entity.ModelConfiguration;
i have this code : IEnumerable<string> q = customers /*EF entity*/ .Select (c =>
Is there anything wrong with this code? My entity is not getting updated. public
assumption: Event\Service\EventService is my personal object that works with Event\Entity\Event entities This code works
I have an Entity in Code First Entity framework that currently looks like this:
I tries to delete an entity - table This is the code: db.Sessions.SqlQuery(delete table
A one-many or many-many relationship in Entity Framework Code First looks like this:- public
I'm using Entity Framework 4.3 Code First with a custom database initializer like this:
In our application, I have seen code written like this: User.java (User entity) public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.