Help for this page

Select Code to Download


  1. or download this
    my $new_school = $schema->resultset('Schools')->create({
        location    => 1,
        name        => 'mySchool',
    ...
        adress      => 'Paris Champs Ellysees 1',
        description => 'Ecole Superieur',
    });
    
  2. or download this
    my $rs = $schema->resultset('Schools')->search({name => 'mySchool'});
    
  3. or download this
    my $school = $rs->first;
    print $school->adress;
    
  4. or download this
    $school->adress('New address of the school');
    $school->update;