Skip to content

Commit

Permalink
make names singular
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlmoon committed Oct 21, 2024
1 parent 8921c10 commit c1be261
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/create_objects.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@
];
}

$object_name = str_replace(' ', '', ucwords(str_replace('_', ' ', $opts['table'])));
$object_name = rtrim(str_replace(' ', '', ucwords(str_replace('_', ' ', $opts['table']))), 's');



create_value_object($properties, $opts['namespace'], $object_name, $opts['base-class'], $opts['schema'], $opts['table'], $opts['dir']);
create_mapper($properties, $opts['namespace'], $object_name, $opts['base-class'], $opts['schema'], $opts['table'], $opts['dir'], $primary_key);
Expand Down

0 comments on commit c1be261

Please sign in to comment.