Results 1 to 3 of 3

Thread: FilesModel::findMultipleByPaths() Help

  1. #1

    Beitrag FilesModel::findMultipleByPaths() Help

    Can someone tell me why am I getting this junk for uuid, when I do
    Code:
    $objModel = \FilesModel::findMultipleByPaths(array('files/doc/download/wai-pageauth.pdf'));
    var_dump($objModel); gives me following:
    Code:
    object(Contao\Model\Collection)#17 (3) {
      ["strTable":protected]=>
      string(8) "tl_files"
      ["intIndex":protected]=>
      int(-1)
      ["arrModels":protected]=>
      array(1) {
        [0]=>
        object(Contao\FilesModel)#15 (5) {
          ["arrData":protected]=>
          array(11) {
            ["id"]=>
            string(3) "180"
            ["pid"]=>
            string(16) "���V����)b��"
            ["tstamp"]=>
            string(10) "1392635564"
            ["uuid"]=>
            string(16) "l�p���`�)b��"
            ["type"]=>
            string(4) "file"
            ["path"]=>
            string(35) "files/doc/download/wai-pageauth.pdf"
            ["extension"]=>
            string(3) "pdf"
            ["hash"]=>
            string(32) "ca4799f70a967661fa7a302cddabc360"
            ["found"]=>
            string(1) "1"
            ["name"]=>
            string(16) "wai-pageauth.pdf"
            ["meta"]=>
            NULL
          }
          ["arrModified":protected]=>
          array(0) {
          }
          ["arrRelations":protected]=>
          array(0) {
          }
          ["arrRelated":protected]=>
          array(0) {
          }
          ["blnPreventSaving":protected]=>
          bool(false)
        }
      }
    }
    OM MANI PEME HUNG! how many has to die for freedom and dignity. Save this world

  2. #2
    New user qzminski's Avatar
    Join Date
    01-08-13.
    Location
    Poland
    Posts
    24

    Default

    This is not a junk but UUID in binary format. You can convert that by using \String::binToUuid() function.
    Contao ambassador
    Codefog - Contao web development

  3. #3

    Default

    Thank you for reply. I realize it only after posting the question. Regards
    OM MANI PEME HUNG! how many has to die for freedom and dignity. Save this world

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
  •