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.
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)
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" .
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.