# |
Jul 1st 2017, 13:38 |
glanceded |
In addition to use an auto-increment key as the primary key, you may also use UUID columns. CakePHP will create a unique 36 character UUID (Cake\Utility\Text::uuid()) whenever you save a new record using the Table::save() method. |
# |
Jul 1st 2017, 13:38 |
glanceded |
Yes , I respect the conventions, but I don't understand this p |
# |
Jul 1st 2017, 13:34 |
glanceded |
the problem is only on my subscriptions table, as I have more tables with guids and they work well |
# |
Jul 1st 2017, 13:34 |
cleptric |
> $user |
# |
Jul 1st 2017, 13:33 |
glanceded |
char 36 is less in size than binary 36? |
# |
Jul 1st 2017, 13:33 |
cleptric |
Should be `CHAR(36)` AFAIR |
# |
Jul 1st 2017, 13:32 |
glanceded |
$this->setDisplayField('guid'); $this->setPrimaryKey('guid'); |
# |
Jul 1st 2017, 13:32 |
glanceded |
binary 36 |
# |
Jul 1st 2017, 13:32 |
admad |
what's the field type for gui in db? |
# |
Jul 1st 2017, 13:31 |
cleptric |
I guid your primary key? |
# |
Jul 1st 2017, 13:29 |
glanceded |
in db the guids are ok |
# |
Jul 1st 2017, 13:29 |
glanceded |
all of my fields are accesibile |
# |
Jul 1st 2017, 13:29 |
glanceded |
why the guid is a resource |
# |
Jul 1st 2017, 13:28 |
slackebot |
{ 'time' => '2017-07-01T13:06:12+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false } ] |
# |
Jul 1st 2017, 13:28 |
glanceded |
[ 'guid' => resource, 'plan_id' => (int) 1, 'next_plan_id' => null, 'next_customer_token' => null, 'expiry' => object(Cake\I18n\FrozenTime) { 'time' => '2017-07-15T13:06:11+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, 'transaction_guid' => null, 'created' => object(Cake\I18n\FrozenTime) { 'time' => '2017-07-01T13:06:12+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, 'modified' => object(Cake\I1 |
# |
Jul 1st 2017, 13:28 |
glanceded |
the result is this |
# |
Jul 1st 2017, 13:28 |
glanceded |
thanks for that, I found out that find("first") doesn't exists anymore |
# |
Jul 1st 2017, 13:28 |
admad |
if you want just 1 record then you should be using ->first() |
# |
Jul 1st 2017, 13:28 |
glanceded |
I have removed ->all method, but the result is still the same |
# |
Jul 1st 2017, 13:27 |
cleptric |
then you’ll get an array |
# |
Jul 1st 2017, 13:27 |
cleptric |
Remove the `->all()` |
# |
Jul 1st 2017, 13:26 |
glanceded |
$userData = $this->Partners ->find("all") ->where(['Partners.id' => $this->Auth->user('id')]) ->contain(['Websites', 'Plans', 'Subscriptions']) ->limit(1) ->all() ->toArray(); |
# |
Jul 1st 2017, 13:26 |
glanceded |
I know, my query looks like this |
# |
Jul 1st 2017, 13:25 |
admad |
find() never returns a field value |
# |
Jul 1st 2017, 13:21 |
glanceded |
hello guys. Why is CakePHP returning "resource" instead of field value when making a find()? |
# |
Jul 1st 2017, 11:53 |
marcusgoede |
ok, then i have to wait until monday. thank you! |
# |
Jul 1st 2017, 11:53 |
admad |
ICU libs are indirectly used by php-intl extension |
# |
Jul 1st 2017, 11:53 |
admad |
you have to update server software, nothing in composer.json |
# |
Jul 1st 2017, 11:51 |
marcusgoede |
or do i have to update the server-software? because this is a managed server… |
# |
Jul 1st 2017, 11:51 |
marcusgoede |
is do not require ICU libs in my composer.json anymore. is that correct? |
# |
Jul 1st 2017, 11:50 |
admad |
@marcusgoede you need to update ICU libs |
# |
Jul 1st 2017, 11:36 |
marcusgoede |
can anybody help me? |
# |
Jul 1st 2017, 11:36 |
slackebot |
[/html/portal.transfer-engelmann.de/vendor/cakephp/cakephp/src/Utility/Text.php, line 1070] Request URL: / Client IP: 95.90.227.124 Trace: Cake\Error\BaseErrorHandler::handleError() - CORE/src/Error/BaseErrorHandler.php, line 153 transliterator_transliterate - [internal], line ?? Cake\Utility\Text::transliterate() - CORE/src/Utility/Text.php, line 1070 Cake\Utility\Text::slug() - CORE/src/Utility/Text.php, line 1103 Cake\View\Helper\FormHelper::_domId( |
# |
Jul 1st 2017, 11:36 |
slackebot |
CORE/src/View/Helper/IdGeneratorTrait.php, line 82 BootstrapUI\View\Helper\FormHelper::_parseOptions() - ROOT/vendor/friendsofcake/bootstrap-ui/src/View/Helper/FormHelper.php, line 383 BootstrapUI\View\Helper\FormHelper::input() - ROOT/vendor/friendsofcake/bootstrap-ui/src/View/Helper/FormHelper.php, line 188 include - APP/Template/Rides/request.ctp, line 38 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1025 Cake\View\View::_render() - |
# |
Jul 1st 2017, 11:36 |
slackebot |
CORE/src/View/View.php, line 986 Cake\View\View::render() - CORE/src/View/View.php, line 610 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 623 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 125 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93 Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 60 [main] - ROOT/webroot/index.ph |
# |
Jul 1st 2017, 11:36 |
marcusgoede |
hi, my app is broken, since i tried to deploy. i reverted to an old stage, but the error stays. 2017-07-01 13:34:58 Warning: Warning (2): transliterator_transliterate(): Could not create transliterator with ID andquot;Any-Latin; Latin-ASCII; [\u0080-\u7fff] removeandquot; (transliterator_create: unable to open ICU transliterator with id andquot;Any-Latin; Latin-ASCII; [\u0080-\u7fff] removeandquot;: U_INVALID_ID) in |
# |
Jul 1st 2017, 11:34 |
admad |
Regard the crud docs for how to set field settings |
# |
Jul 1st 2017, 11:33 |
pidlo |
admad ok but where i must put it? i use this crud plugin in the firtst time in templates folder i have not posts directory.. thanks lot |
# |
Jul 1st 2017, 11:32 |
admad |
Or conversely turn on locale based parsing for date time db type in bootstrap. |
# |
Jul 1st 2017, 11:30 |
admad |
pidlo: set "data-format" => 'Y-m-d H:i:s' in the field's settings |
# |
Jul 1st 2017, 11:18 |
pidlo |
but date picker i dont know howto change to timestamp for dtb |