I have this ( preg_match('/^\d*$/', $nr_procedimento) ? 'f' : 't'; ) in a code, but I have no idea what it does, more precisely the preg_match('/^\d*$/' part. Anyone know?
But once I get caught using doctrine usage.
I wanted to do this:
SELECT c.nm_computador, c.te_ip_computador, log.usuario, log.data
FROM computador c
INNER JOIN log_user_logado log ON c.id_computador = log.id_computador;
But I do this:...
I'm trying to get the values from the database and display on the screen, however
it gives me the following error message:
ErrorException in helpers.php line 531:
htmlentities() expects parameter 1 to be string, object given (View: /var/www/re...
First, we know that depending on the number of columns in a query, you can increase response time.
In Doctrine I call the following repository, which has a relationship and which brings all the columns of both entities.
public function inde...
I am mapping the database with doctrine and am having a problem.
When I use Annotations the following way works perfectly:
/**
* @Entity
* @Table(name="customer",uniqueConstraints={@UniqueConstraint(name="email", columns={"email"})})
*/
cla...
I read the Documentation the only thing I did not understand was as is the structure of it.
I explain:
My file composer.json in the project root
{
"require": {
"doctrine/dbal": "2.4.*"
}
}
When you run the command:
p...
I'm going to be a little ...
In my bootstrap.php file I'm trying to get the repository of a given entity and gives Fatal Error , stating that the Class does not exist, but it exists. Here is the error message:
Fatal error: Uncaugh...
Good afternoon,
I am using doctrine in my laravel project to control the bank.
I'm trying to insert a date but it does not return any value. If I use $ _ POST I can see the value.
Save function:
public function salvar(Request $reque...
I have the following code in my controller:
$shares = $this
->getDoctrine()
->getRepository('AppBundle:Shares')
->findBy(
$where,
$orderBy,
$paginator->getPerPage(),
$paginator->getCur...