Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parent model hasMany child model which are MeioUpload afterdelete, images remain #49

Open
simkimsia opened this issue Jun 1, 2010 · 0 comments

Comments

@simkimsia
Copy link
Contributor

Hi,

i have a parent model that is called Product

i have a child model that is called ProductImages.

as you can imagine, Product hasMany ProductImages

once i delete Product, the ProductImages are gone as well because i have set the exclusive and dependency as true

var $hasMany = array(
    'ProductImage' => array(
        'className' => 'ProductImage',
        'foreignKey' => 'product_id',
        'dependent' => true,
        'conditions' => '',
        'fields' => '',
        'order' => '',
        'limit' => '',
        'offset' => '',
        'exclusive' => true,
        'finderQuery' => '',
        'counterQuery' => ''
    ),

);

i have updated to the latest master copy of meioupload.

however, even though the data is removed, the image and the thumbnails are stilll there. i noted that MeioUpload already has some kind of file removal function in its afterDelete. so what is preventing this from working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant