Подскажите, как заставить понимать decimal колонку базы, как float?
кто знает про лексикографический порядок?
How can i realize that?
did you pass the PHP certification exam?
Привет, как получить класс через название в строковой переменной?

#offtop
👇👇👇
https://t.me/joinchat/VtfOMUxsZJQ5YzIx

Yii 2: The Fast, Secure and Professional PHP Framework — yii2/Schema.php at master · yiisoft/yii2
То вот решение
namespace App\System\Extension;
use yii\db\mysql\Schema;
class MySQLSchema extends Schema
{
/**
* @param $column
* @return string
*/
protected function getColumnPhpType($column)
{
if ($column->type === self::TYPE_DECIMAL) {
return ‘double’;
}
return parent::getColumnPhpType($column);
}
}
В свою конфигурацию для контейнера:
‘definitions’ => [
# Добавляем поддержку DECIMAL как FLOAT (phpTypeCast)
Schema::class => [
‘class’ => \App\System\Extension\MySQLSchema::class
],
]
I have the A user that books a doctor visit, when he does that a simple notification of booking will arrive to B (our doctor).
In the case B decides to delete the visit, he sends a notification to A to infrom him.
How can i realize that? I’m new with Yii2, please help me
I have the A user that books a doctor visit, when he does that a simple notification of booking will arrive to B (our doctor).
In the case B decides to delete the visit, he sends a notification to A to infrom him.
How can i realize that? I’m new with Yii2, please help me
You have to learn pure PHP programming before you learn Yii2, Laravel or any other framework.
did you pass the PHP certification exam?
I have the A user that books a doctor visit, when he does that a simple notification of booking will arrive to B (our doctor).
In the case B decides to delete the visit, he sends a notification to A to infrom him.
How can i realize that? I’m new with Yii2, please help me
Use «onesignal», good for your purpose
Есть строка «app\models\Model», я хочу получить Model::class
Есть строка «app\models\Model», я хочу получить Model::class
new $class();
Class name must be a valid object or a string
Stack trace: #0 /vendor/yiisoft/yii2/db/BaseActiveRecord.php(1243):
Есть строка «app\models\Model», я хочу получить Model::class
В yii2 еще есть Yii::createObject
Stack trace: #0 /vendor/yiisoft/yii2/db/BaseActiveRecord.php(1243):
попробуй \app\models\Model