[Dbix-class] cant delete resultset
Aran Deltac
aran at arandeltac.com
Thu Nov 2 05:39:37 GMT 2006
What you are deleting in your code example is a single user. If you want to delete an entire resultset then call delete on the resultset object:
my $users = $schema->resultset('User');
$users->delete;
Aran
On Wed, 1 Nov 2006 22:34:07 -0500 (EST), "frank_coleman" <frank_coleman at myway.com> wrote:
>
> Greetings!
>
> I am trying to delete a resultset, but it doesn't work.
>
> Tried to find the solution for days, but I'm lost.
>
> Here is my code:
>
>
>
> my $user = $schema->resultset('User')->find(1);
>
> $user->delete;
>
>
>
> -FC
>
>
>
>
>
> _______________________________________________
> No banners. No pop-ups. No kidding.
> Make My Way your home on the Web - http://www.myway.com
>
>
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive:
> http://www.mail-archive.com/dbix-class@lists.rawmode.org/
More information about the Dbix-class
mailing list