Results 1 to 2 of 2

Thread: How to use 'check_date_relationships_save()'?

  1. #1
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default How to use 'check_date_relationships_save()'?

    I hope I'm posting this in the right place (sorry if I'm not).

    I have a functionality in thought that I want to be able to see the date when a relationship was saved on, so I looked about sugarcrm wiki for a sugarbean method and found 'check_date_relationships_save()' and load.

    check_date_relationships_load()

    This function retrieves a record of the appropriate type from the DB. It fills in all of the fields from the DB into the object it was called on.


    param: $id - If ID is specified, it overrides the current value of $this->id. If not specified the current value of $this->id will be used.

    return: this - The object that it was called apon or null if exactly 1 record was not found.


    check_date_relationships_save()

    This function processes the date and time fields.


    Interal function, do not override.
    Not, much information there. I was hoping if it was possible for anyone could be kind enough to provide an example to help me understand - essentially if I can use it or not in my train of thought.
    Last edited by MissAran; 2010-08-02 at 11:17 AM. Reason: Typo in title

  2. #2
    MissAran is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    24

    Default Re: How to use 'check_date_relationships_save()'?

    Absolutely silly.
    I didn't see past my nose and see that inside the relationship with the date_modified of the records related to one another I can easily query the table using both ids of the records. A simple sql query (:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •