[Dbix-class] find_or_create did it find or created?

Rajeev Prasad rp.neuli at yahoo.com
Fri Aug 18 17:34:17 GMT 2017


How do we know wether this function 'found' or created whatever was being asked to 'find_or_create' ???
my $id = $schema
        ->resultset('Node')
        ->find_or_create
        (
            { nodeName => $node },
            { key => 'nodeID' }
        );
how do we know wether $id was already existing in table?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20170818/5ab412c2/attachment.htm>


More information about the DBIx-Class mailing list