Hii there,
This might be a bit of a dumb question, but I’ve created a simple schema for CakePHP
in Skipper18
that looks like this:
Now my question is (as the title suggests), where do I export it to?
I have set the format to CakePHP
but don’t know where I should make the export path
point to.
I have read the documentation and googled around, but couldn’t find an answer.
I think it’s src/Model
, but then there are 3 directories called Behaviour
, Entity
and Table
.
I’m using CakePHP 3.6.
This is an example of how the generated code by Skipper18 looks like:
Users.php:
<?php
require_once 'base/base_users.php';
/**
* Users object
*
* This class has been auto-generated by ORM Designer
*/
class Users extends BaseUsers
{
}
?>
base/base_users.php:
<?php
/**
* Base Users object
*
* This class has been auto-generated by ORM Designer (http://www.skipper18.com)
*/
class BaseUsers extends AppModel
{
public $name = 'Users';
public $primaryKey = 'ID';
public $_schema =
array (
'ID' =>
array (
'type' => 'integer',
'null' => false
),
'Username' =>
array (
'null' => false
),
'Email' =>
array (
'null' => false
),
'Password' =>
array (
'null' => false
)
);
public $hasOne =
array (
'UserDetails' =>
array (
'className' => 'UserDetails',
'foreignKey' => 'UID'
)
);
}
?>