dbdesigner2cake : DBDesigner 4 Scaffold Tools for CakePHP – 1.0.5 – Minor Release

Posted: December 4th, 2007 | Author: Dérico Filho | Filed under: DBDesigner2CakePHP | 4 Comments »

Hello All,

A minor bug release of dbdesigner2cake is available. Those who are using the release 1.0.4 are recommended to upgrade to 1.0.5.

A small bug on a global variables turned the new parameter –core almost useless.

Well, as I usually finish such release notes:

You are welcome to download the 1.0.5 version at
http://dbdesigner2cake.cirello.org/download.html

Bye


4 Comments on “dbdesigner2cake : DBDesigner 4 Scaffold Tools for CakePHP – 1.0.5 – Minor Release”

  1. 1 Rob Coenen said at 18:45 on December 6th, 2007:

    Hi, I have tested your tool today using CakePHP 1.1.18.5850 (most recent stable release).
    The model generation works really well. I love the fact that it does generate the correct CakePHP-specific belongsTo, hasOne, hasMany and hasAndBelongsToMany relationships from the MySQL constraints.
    a few points:
    -Too bad I cannot generate 1 single model, it always generates all models for all database tables at once
    -I still had to use the CakePHP bake utility to generate the (full-) controllers and views since they got scaffolded. This is not too much of a big deal actually.
    -Somehow my Bake-generated views had the wrong column label. So lets say I have columns labeled person, city, zipcode then the contents of these tables would actually get mixed up like Amsterdam, John, 1234XT (person, name, zipcode) …
    Not sure how this is possible. I bever had this with the Bake utility before. Maybe b/c Bake is using the dbdesigner2cake generated model file sto construct the controllers and views?

  2. 2 Dérico Filho said at 10:40 on December 7th, 2007:

    Hi Rob,

    I reply to your thoughts here:

    - I don’t see the point in generating one single model with dbdesigner2cake. I use Bake Modelling when I need changing one single model. I think the true issue is, non-destructive baking… I am on the work with that.
    - The scaffold code generation is enabled when dbdesigner2cake is used with CakePHP 1.2. It enables the -wb (–with-bake) option that generates bake code instead of files with $scaffold variable.
    - I am not sure what’s happened, therefore I cannot blame either dbdesigner2cake or cakephp. I suggest you to upgrade your cakephp and try again.

    Bye

  3. 3 Rob Coenen said at 08:43 on December 19th, 2007:

    Here is an example of a view created by Bake using the Model generated with your tool. Im using CakePHP Stable: 1.1.18.5850

    Note how the column header says “Dealer Brand” but the column data actually displays the “BrandStyle[name]” and vice versa?
    Not sure why bake screws up here… maybe need to report this back to the CakePHP team.

    List Dealer Brand Styles

    Id
    Name
    Dealer Brand
    Brand Style
    Actions

     link($dealerBrandStyle['BrandStyle']['name'], ‘/admin/dealer_brands/view/’ .$dealerBrandStyle['BrandStyle']['id'])?>
     link($dealerBrandStyle['DealerBrand']['name'], ‘/admin/brand_styles/view/’ .$dealerBrandStyle['DealerBrand']['id'])?>

    link(‘View’,'/admin/dealer_brand_styles/view/’ . $dealerBrandStyle['DealerBrandStyle']['id'])?>
    link(‘Edit’,'/admin/dealer_brand_styles/edit/’ . $dealerBrandStyle['DealerBrandStyle']['id'])?>
    link(‘Delete’,'/admin/dealer_brand_styles/delete/’ . $dealerBrandStyle['DealerBrandStyle']['id'], null, ‘Are you sure you want to delete id ‘ . $dealerBrandStyle['DealerBrandStyle']['id'])?>

    link(‘New Dealer Brand Style’, ‘/admin/dealer_brand_styles/add’); ?>

  4. 4 Dérico Filho said at 09:58 on December 19th, 2007:

    Hi Rob!

    I contacted you by e-mail with few instructions. I am waiting for your answer.

    Thanks.


Leave a Reply