Skip to content

Instantly share code, notes, and snippets.

@barrychapman
Last active January 24, 2017 04:26
Show Gist options
  • Save barrychapman/57b0858519ba72e62e290260cd64178a to your computer and use it in GitHub Desktop.
Save barrychapman/57b0858519ba72e62e290260cd64178a to your computer and use it in GitHub Desktop.
<?php
namespace App\My\Namespace;
class MyTable extends Table {
}
?>
then when you use the table in one of your model tables:
<?php
namespace App\Model\Table;
use App\Model\Entity;
use App\My\Namespace\MyTable as Table;
use Cake\Validation\Validator;
use Cake\ORM\Query;
class MyOtherModelTable extends Table { <-- this will now extend your new table.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment