mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Use static class names instead of strings when getting objects from the DB
This commit is contained in:
parent
a442f92e28
commit
acb6b2949f
16 changed files with 36 additions and 34 deletions
|
@ -67,7 +67,7 @@ class ArtworkTag extends Tag{
|
|||
SELECT *
|
||||
from Tags
|
||||
where Name = ?
|
||||
', [$artworkTag->Name], 'ArtworkTag');
|
||||
', [$artworkTag->Name], ArtworkTag::class);
|
||||
|
||||
if(isset($result[0])){
|
||||
return $result[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue