This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "/api/contexts/Error", | |
"@type": "hydra:Error", | |
"hydra:title": "An error occurred", | |
"hydra:description": "Entity App\\Entity\\Submission@000000002116ebc30000000012ca4827 is not managed. An entity is managed if its fetched from the database or registered as new through EntityManager#persist", | |
"trace": [ | |
{ | |
"namespace": "", | |
"short_class": "", | |
"class": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note how in the document below, successive calls to getDocument() (which uses the GET API) return the same | |
version of the document despite new versions being indexed with addDocument(). | |
[2016-12-29 10:43:46] app.INFO: Elastica version check: getDocument() called. Version 52 of 1:69 returned [] [] | |
[2016-12-29 10:43:47] app.INFO: Elastica version check: Called addDocument() for 1:69 [] [] | |
[2016-12-29 10:43:47] app.INFO: Elastica version check: getDocument() called. Version 52 of 1:69 returned [] [] | |
[2016-12-29 10:43:47] app.INFO: Elastica version check: Called addDocument() for 1:69 [] [] | |
[2016-12-29 10:43:47] app.INFO: Elastica version check: getDocument() called. Version 52 of 1:69 returned [] [] | |
[2016-12-29 10:43:47] app.INFO: Elastica version check: Called addDocument() for 1:69 [] [] | |
[2016-12-29 10:43:48] app.INFO: Elastica version check: getDocument() called. Version 55 of 1:69 returned [] [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mtime = microtime(); | |
$mtime = explode(" ",$mtime); | |
$mtime = $mtime[1] + $mtime[0]; | |
$starttime = $mtime; | |
$last = array(1, 2); //First two numbers in Fibonacci sequence. | |
$sum = 2; // Since we won't calculate out the two (it's in the 'seed' above), we start our sum with it. | |
$highest = 4000000; // stop here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT col1 FROM tbl_name WHERE col2=val2 AND col3=val3; | |
SELECT col1 FROM tbl_name WHERE col2=val2 AND col4=val4; |