Level 22
It depends on your needs but it's always advised to stick to the docs and common approaches. So just try to stick to Models when you retrieve anything from databases.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, Is it wrong to use static classes in Models to retrieve data from database?
It depends on your needs but it's always advised to stick to the docs and common approaches. So just try to stick to Models when you retrieve anything from databases.
Please or to participate in this conversation.