-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The following doesn't have autocompletion and is very error prone.
use \Bango\Model;
class User extends Model
{
/**
* Class constructor.
*
* @return void
*/
public function __construct()
{
$this->bind_entity("users");
$this->create_fields([
"id" => "integer",
"email" => "string",
"password" => "string"
]);
}
}
you could use the one from doctrine, https://symfony.com/doc/current/doctrine.html#creating-an-entity-class
with typed properties and annotations in PHP8, it will be perfect.
gantoreno and KlissmanGranados
Metadata
Metadata
Assignees
Labels
No labels