On 15/06/12 07:04, Alex Erzin wrote:
Hello,
[ ... ]
CREATE TABLE `mydb`.`target` (
`target_id` INT NOT NULL ,
`description` VARCHAR(45) NULL ,
PRIMARY KEY (`target_id`) )
CREATE TABLE `mydb`.`host` (
`target_id` INT NOT NULL ,
`hostname` VARCHAR(45) NULL ,
`ip` VARCHAR(45
Hello,
Just wanted to point out an issue I ran with cols/+cols when chaining a couple
of DBIC queries.
I was trying to do the following:
$schema->resultset('CD')->search({}, { cols => 'me.cola'})->search{}, { '+cols'
=> 'me.colb' });
- and was finding that 'colb' wasn't appearing in my query
Hello,
Just wanted to point out an issue I ran with cols/+cols when chaining a couple
of DBIC queries.
I was trying to do the following:
$schema->resultset('CD')->search({}, { cols => 'me.cola'})->search{}, { '+cols'
=> 'me.colb' });
- and was finding that 'colb' wasn't appearing in my query
- Original Message -
> From: Peter Rabbitson
> To: Darius Jokilehto ; DBIx::Class user and
> developer list
> Cc:
> Sent: Monday, 18 March 2013, 18:13
> Subject: Re: [Dbix-class] Is columns to cols as +columns is to +cols
>
> On Mon, Mar 18, 2013 at
On Thursday, 13 November 2014, 11:36, RAPPAZ Francois
wrote:
[...]
>
>
>I have two tables joined by a "belongs to" and a "has many" relationship
> Ddref
> idref iduser finished created
> nn--+
> ^ ¦
> ¦
You haven't specified the id columns, you need to do this explicitly, or like
you said you won't be able to reference them. In other words:
fixture_sets => {
'basic' => [
{
Person => [
[ 'id', 'first_name', 'last_name', 'company_id'
> On Friday, 21 November 2014, 15:35, Christian Lackas
> wrote:
[...]
>
> Thus, just adding another bind value that overrules the search for a
> specific customer.
> And this quickly becomes quite complicated if I know also want to add an
> optional 'customer.type = ?' to work on project
Hello Dave,
This might be what you're looking for:
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Component.pod
Darius
On Friday, 16 September 2016, 17:09, Dave Cross wrote:
In the documentation of DBIx::Class::Schema::Loader::Base there is a
reference to a
but I could, of course, be wrong) that components which are
loaded into Schema objects would follow different rules.
Cheers,
Dave...
Quoting Darius Jokilehto :
> Hello Dave,
> This might be what you're looking for:
> https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/