# Copyright (c) 2008 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: Support.bunit,v 1.5 2010/01/08 17:29:05 nagler Exp $ Request(); options({comparator => 'nested_contains'}); [ sub {class('Bivio::SQL::t::Support::T1Form')->get_instance} => [ get_info => [ column_aliases => [{ 'Address_1.realm_id' => { name => 'RealmOwner.realm_id', }, 'RealmUser.realm_id' => { name => 'RealmOwner.realm_id', }, }], ], ], class() => [ parse_model_name => [ 'RealmOwner' => [{ model_name => 'RealmOwner', model_sql => 'realm_owner_t', }], 'RealmOwner_1' => [{ model_name => 'RealmOwner_1', model_sql => 'realm_owner_t_1', }], 'my.RealmOwner' => [{ model_name => 'my.RealmOwner', model_sql => 'realm_owner_t_my', }], 'My.RealmOwner' => DIE(), ], parse_column_name => [ 'RealmOwner.realm_type' => [{ type => 'Bivio::Auth::RealmType', model_name => 'RealmOwner', sql_name => 'realm_owner_t.realm_type', }], 'qual.RealmOwner.realm_type' => [{ type => 'Bivio::Auth::RealmType', model_name => 'qual.RealmOwner', sql_name => 'realm_owner_t_qual.realm_type', }], ], is_qualified_model_name => [ 'RealmOwner_1' => 1, 'qualifier.RealmOwner' => 1, 'BadQual.RealmOwner' => 0, 'RealmOwner' => 0, 'Bivio::Biz::Model::RealmOwner' => 0, ], parse_qualified_field => [ '' => [undef], 'a' => [undef], 'qual.RealmOwner.name' => [{ prefix => 'qual', model => 'RealmOwner', field => 'name', }], ], extract_qualified_prefix => [ 'aa.bb.cc' => 'aa', 'bb.cc' => DIE(), ], extract_column_name => [ 'aa.bb.cc' => 'cc', 'bb.cc' => 'cc', 'cc' => 'cc', ], ], ];