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

Delete / Remove cropImage #9

Open
tomfrit opened this issue Apr 22, 2013 · 0 comments
Open

Delete / Remove cropImage #9

tomfrit opened this issue Apr 22, 2013 · 0 comments

Comments

@tomfrit
Copy link

tomfrit commented Apr 22, 2013

Hello,
I'm having problems deleting and removing images from a cropImage field via the API. I tried

foreach ($video->teaserbild as $img) {
    $video->teaserbild->remove($img);
}

and also

$video->teaserbild->removeAll();

But no success. The image file gets deleted but the data stays in the field. If I try again, unlink() throws an error since the file doesn't exist. I'm on PW 2.3.0 and cropImage is up to date.

Thanks,
thomas

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