use strict;
-use warnings;
+use warnings;
use Test::More;
use Test::Warn;
$cd->update;
-is($queries, 1, 'liner_notes (might_have) not prefetched - do not load
+is($queries, 1, 'liner_notes (might_have) not prefetched - do not load
liner_notes on update');
$schema->storage->debug($sdebug);
$cd2->update;
-is($queries, 1, 'liner_notes (might_have) prefetched - do not load
+is($queries, 1, 'liner_notes (might_have) prefetched - do not load
liner_notes on update');
warning_like {
+ local $ENV{DBIC_DONT_VALIDATE_RELS};
+
DBICTest::Schema::Bookmark->might_have(
linky => 'DBICTest::Schema::Link',
{ "foreign.id" => "self.link" },
{
local $ENV{DBIC_DONT_VALIDATE_RELS} = 1;
- warning_is {
+ warning_is {
DBICTest::Schema::Bookmark->might_have(
slinky => 'DBICTest::Schema::Link',
{ "foreign.id" => "self.link" },