When searching, I came up with a lot of results for people having similar problems, but they were always associated with association errors. Iβm trying to add a simple text box to a table in a database, and throughout my life I canβt understand what makes us different at this time - when I did this without problems many times before.
I added the "record_checksum" field to 4 different objects, but I will use only one to simplify the example. (The same thing happens for all 4).
Here is an example of my Entity \ Cloud.php file, in the field " record_checksum " is added below:
use Doctrine\ORM\Mapping as ORM;
namespace Entity;
class Cloud
{
private $id;
private $position_x;
private $position_y;
private $commit_group;
private $commit_key;
private $record_checksum;
- getter/setter, . Entity, pastebin (http://pastebin.com/9LheZ6A1). "Commit_key", , .
:
$ doctrine orm:schema-tool:update
ALTER TABLE cloud ADD record_checksum VARCHAR(32) DEFAULT NULL;
$ doctrine orm:schema-tool:update
Updating database schema...
Database schema updated successfully!
, DB.
, DQL-, :
$dql = "SELECT c.id AS id, c.commit_key AS key, c.record_checksum AS checksum ".
"FROM Entity\\Cloud c WHERE c.commit_group = :commit_group";
:
[Semantical Error] line 0, col 42 near 'record_checksum': Error: Class Entity\Cloud has no field or association named record_checksum,
- . , - . !
-Nick