How can I make an entity store a createdAt and updatedAt field with doctrine2 mapped by annotation? ... My entity is User. I am using easyadminbundle to manage the backend.
Home
/
user-43303
Nicoo1991's questions
Nicoo1991
Asked:
2020-05-23 16:28:51 +0800 CST
Gem::ConflictError: Unable to activate dm-serializer-1.2.2, because json-2.0.2 conflicts with json (~> 1.6)
gem list --local
*** LOCAL GEMS ***
actioncable (5.1.0)
actionmailer (5.1.0)
actionpack (5.1.0)
actionview (5.1.0)
activejob (5.1.0)
activemodel (5.1.0)
activerecord (5.1.0)
activesupport (5.1.0)
addressable (2.5.1)
arel (8.0.0)
bcrypt (3.1.11)
bcrypt-ruby (3.1.5)
bigdecimal (default: 1.3.0)
builder (3.2.3)
bundler (1.14.6)
concurrent-ruby (1.0.5)
daemons (1.2.4)
data_mapper (1.2.0)
data_objects (0.10.17)
datamapper-dm-core (0.10.1)
did_you_mean (1.1.0)
dm-aggregates (1.2.0)
dm-constraints (1.2.0)
dm-core (1.2.1)
dm-do-adapter (1.2.0)
dm-migrations (1.2.0)
dm-serializer (1.2.2)
dm-sqlite-adapter (1.2.0)
dm-timestamps (1.2.0)
dm-transactions (1.2.0)
dm-types (1.2.2)
dm-validations (1.2.0)
do_sqlite3 (0.10.17)
erubi (1.6.0)
eventmachine (1.2.3)
extlib (0.9.16)
fastercsv (1.5.5)
globalid (0.4.0)
i18n (0.8.1)
io-console (default: 0.4.6)
json (default: 2.0.2)
json_pure (2.1.0, 1.8.6)
loofah (2.0.3)
mail (2.6.5)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.1)
multi_json (1.12.1)
mustermann (1.0.0)
net-telnet (0.1.1)
nio4r (2.0.0)
nokogiri (1.7.2)
openssl (default: 2.0.2)
power_assert (0.4.1)
psych (default: 2.2.2)
public_suffix (2.0.5)
rack (2.0.2, 1.6.5)
rack-protection (2.0.0, 1.5.3)
rack-test (0.6.3)
rails (5.1.0)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.3)
railties (5.1.0)
rake (12.0.0)
rdoc (default: 5.0.0)
shotgun (0.9.2)
sinatra (2.0.0, 1.4.8)
slim (3.0.7)
sprockets (3.7.1)
sprockets-rails (3.2.0)
stringex (1.5.1)
temple (0.7.7)
test-unit (3.2.3)
thin (1.7.0)
thor (0.19.4)
thread_safe (0.3.6)
tilt (2.0.7)
tzinfo (1.2.3)
uuidtools (2.1.5)
websocket-driver (0.6.5)
websocket-extensions (0.1.2)
xmlrpc (0.2.1)
How can i solve this problem?
I use Ubuntu 16.04 LTS.
Previously I installed data_mapper and it gave me a sinatra error with the same feature, I updated with gem sinatra update and it worked in another project if data_mapper. When I wanted to use the same it returned the current error with JSON.
Nicoo1991
Asked:
2020-05-20 03:06:49 +0800 CST
How do I create a cronjob in symfony3 for a given controller? I need it to run every 30 minutes.
controller action path is '/update'
<?php
namespace AppBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Finder\Finder;
class UpdateCommand extends Command
{
protected function configure()
{
$this
->setName('app:update:products')
->setDescription('Update de Productos')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln([
'Inicio de Actualización',
'============>',
'',
]);
$path = get('kernel')->getRootDir() . '/../web';
$finder = new Finder();
$finder->files()->in($path);
$finder->name('productos.txt');
foreach ($finder as $file) {
$contents = $file->getContents();
$arrayContents = str_getcsv($contents,'
');
//var_dump($arrayContents);
foreach ($arrayContents as $dato){
$datos= str_getcsv($dato,' ');
var_dump($datos);
}
}
$client = new SoapClient('https://example_wsdl.php?v=01.02');
$synchro = $client->__soapCall(
'Sincronizacion',
[[
'param1'=> xxxx,
'param2'=>'xxxx',
'param3' => 'xxxx'
]]
);
var_export($sinchro);
}
}
?>
Nicoo1991
Asked:
2020-05-19 02:15:07 +0800 CST
Problem connecting to web service. My code is the following:
$client = new \nusoap_client('clientesoap', true);
$param= array('parametro1'=> value1, 'parámetro2'=>'value2');
$result = $client->call('metodo', array('parameters' => $param), '', '', false, true);
the two parameters that I pass with those requested by the webservice method but it does not enter.