Entity storagename is in correct in storage class #2

Closed
opened 2026-01-23 11:34:38 +01:00 by admin · 1 comment
Owner

Originally created by @aonamrata on GitHub (May 30, 2012).

I am using keyValue lib to connect to cassandra DB(created my custom storage class cassandraStorage) in zend framework. I have an Entity class "McMessage" but my DB table (CF) is "mc_message" .

namespace CassEntities;
use Doctrine\KeyValueStore\Mapping\Annotations as KVS;

/**
 * @KVS\Entity(storageName="mc_message")
 */
class McMessage
{
    /** @KVS\Id */
    public $key;
    public $headline;
    public $body;

}

So now when i try to $manager->find() .. in my cassandraStorage->find($storageName, $key) - i get $storageName as "McMessage", whereas it should be "mc_message".

I guess the prob is that the annotation class don't extend Doctrine\Common\Annotations\Annotation.

Originally created by @aonamrata on GitHub (May 30, 2012). I am using keyValue lib to connect to cassandra DB(created my custom storage class cassandraStorage) in zend framework. I have an Entity class "McMessage" but my DB table (CF) is "mc_message" . ``` namespace CassEntities; use Doctrine\KeyValueStore\Mapping\Annotations as KVS; /** * @KVS\Entity(storageName="mc_message") */ class McMessage { /** @KVS\Id */ public $key; public $headline; public $body; } ``` So now when i try to $manager->find() .. in my cassandraStorage->find($storageName, $key) - i get $storageName as "McMessage", whereas it should be "mc_message". I guess the prob is that the annotation class don't extend Doctrine\Common\Annotations\Annotation.
admin added the bug label 2026-01-23 11:34:38 +01:00
admin closed this issue 2026-01-23 11:34:38 +01:00
Author
Owner

@stof commented on GitHub (May 30, 2012):

extending Doctrine\Common\Annotations\Annotation is not a requirement at all to be considered as an annotation (actually, even the ORM does not extend it anymore)

@stof commented on GitHub (May 30, 2012): extending Doctrine\Common\Annotations\Annotation is not a requirement at all to be considered as an annotation (actually, even the ORM does not extend it anymore)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/KeyValueStore#2