CREATE TABLE users( id INTEGER PRIMARY KEY, name TEXT NOT NULL, description TEXT NOT NULL ); ãã®ãã¼ãã«ã«é¢ãã¦ï¼ ãæå®ããã ID ã®ã¦ã¼ã¶ã®ï¼ æå®ããããã£ã¼ã«ãã®ã¿ã å·®åæ´æ°ãããã ã¨ããè¦æ±ãããï¼ããã«åããã¦ä»¥ä¸ã®ããã« UserRepository ã¯ã©ã¹ãå®è£ ããã class UserRepository { public function update( int $id, ?string $name = null, ?string $description = null, ): void { // å¦çå 容ã¯ããã¼ $updated = []; if ($name !== null) { $updated['name'] = $name; } if ($descript
{{#tags}}- {{label}}
{{/tags}}