Jump to:

7939 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Multipul Uploadify

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 679 Views
  • mattclegg
    Community Member
    56 Posts

    Multipul Uploadify Link to this post

    Hey Uncle Cheese,

    Great work on the new site, modules, screencasts & hat!

    I tried using multipul Uploadifies on an Object and have;

    class MyObject extends DataObject {
       static $has_many=array(

    class MyObject_Image extends Image {
       static $has_one = array (
          'MyObject' => 'MyObject'
    class MyObject_File extends File {
       static $has_one = array (
          'MyObject' => 'MyObject'

    But the script woudn't load & firebug showed;
    "Column 'ClassName' in where clause is ambiguous"

    I changed line 341 of UploadifyField::importlist() to

    $files = DataObject::get("File", "ParentID = $id AND \"File\".ClassName != 'Folder'");

    And it worked!

    Is that the right way to reference table names?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.